Modifier and Type | Field and Description |
---|---|
static @NotNull String |
CONTEXT_SPEC
The context specification of this trace.
|
Constructor and Description |
---|
BreadthFirstTrace(int depth,
@NotNull String path,
@NotNull Consumer<List<String>> context)
Create a new instance of a breadth first traversal trace.
|
Modifier and Type | Method and Description |
---|---|
void |
run(@NotNull org.apache.jackrabbit.oak.spi.state.NodeState node)
Run this trace on the passed
node . |
@NotNull public static final @NotNull String CONTEXT_SPEC
public BreadthFirstTrace(int depth, @NotNull @NotNull String path, @NotNull @NotNull Consumer<List<String>> context)
depth
- maximal depth of the nodes to traversepath
- path of the root node where to start traversingcontext
- consumer to pass the additional context topublic void run(@NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeState node)
Trace
node
.Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.