public class RequestTrace extends Object
*Request
object that is currently processed. When invoking methods on the repository system, client code may provide a request
trace that has been prepopulated with whatever data is useful for the application to indicate its state for later
evaluation when processing the repository events.RepositoryEvent.getTrace()
Modifier | Constructor and Description |
---|---|
|
RequestTrace(Object data)
Creates a new root trace with the specified data.
|
protected |
RequestTrace(RequestTrace parent,
Object data)
Creates a new trace with the specified data and parent
|
Modifier and Type | Method and Description |
---|---|
Object |
getData()
Gets the data associated with this trace.
|
RequestTrace |
getParent()
Gets the parent of this trace.
|
RequestTrace |
newChild(Object data)
Creates a new child of this trace.
|
static RequestTrace |
newChild(RequestTrace parent,
Object data)
Creates a child of the specified request trace.
|
String |
toString() |
public RequestTrace(Object data)
data
- The data to associate with the trace, may be null
.protected RequestTrace(RequestTrace parent, Object data)
parent
- The parent trace, may be null
for a root trace.data
- The data to associate with the trace, may be null
.public static RequestTrace newChild(RequestTrace parent, Object data)
parent.newChild()
when the specified parent trace is not null
or
otherwise instantiante a new root trace.parent
- The parent request trace, may be null
.data
- The data to associate with the child trace, may be null
.null
.public final Object getData()
null
if none.public final RequestTrace getParent()
null
if this is the root of the trace stack.public RequestTrace newChild(Object data)
data
- The data to associate with the child, may be null
.null
.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.