public class Log4jCorrelationContext extends Object implements Externalizable, CorrelationContext
| Constructor and Description |
|---|
Log4jCorrelationContext() |
Log4jCorrelationContext(String requestId,
String parentRequestId,
String rootRequestId) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Would be used to indicate that the context can be cleaned and reused.
|
String |
getParentRequestId()
The parent request ID if this is a sub-request.
|
String |
getRequestId()
A unique value representing the current, active request.
|
String |
getRootRequestId()
The root request ID if this is a sub-request.
|
void |
readExternal(ObjectInput in) |
void |
setParentRequestId(String parentRequestId)
Sets the parent request ID if this is a sub-request.
|
void |
setRequestId(String requestId)
A unique value representing the current, active request.
|
void |
setRootRequestId(String rootRequestId)
Sets the root request ID if this is a sub-request.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public String getRequestId()
CorrelationContextgetRequestId in interface CorrelationContextpublic void setRequestId(String requestId)
CorrelationContextsetRequestId in interface CorrelationContextrequestId - A unique value representing the current, active request.public String getParentRequestId()
CorrelationContextgetParentRequestId in interface CorrelationContextpublic void setParentRequestId(String parentRequestId)
CorrelationContextsetParentRequestId in interface CorrelationContextparentRequestId - The parent request ID.public String getRootRequestId()
CorrelationContextgetRootRequestId in interface CorrelationContextpublic void setRootRequestId(String rootRequestId)
CorrelationContextsetRootRequestId in interface CorrelationContextrootRequestId - The root request ID.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void destroy()
CorrelationContextdestroy in interface CorrelationContextCopyright © 2022 The Apache Software Foundation. All rights reserved.