Class RequestId
java.lang.Object
org.odpi.openmetadata.frameworks.auditlog.requestid.RequestId
Provides access to the request id for the current thread. It also manages its
creation and update.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor initializes the request id with a random UUID. -
Method Summary
Modifier and TypeMethodDescriptionvoidSet up the request id for the current thread.Return the requestId for this thread.voidsetRequestId(String requestIdValue) Set up the request id for the current thread.toString()JSON-style toString.
-
Constructor Details
-
RequestId
public RequestId()Default constructor initializes the request id with a random UUID.
-
-
Method Details
-
setRequestId
Set up the request id for the current thread. This may be null to create a new request id value.- Parameters:
requestIdValue- requestId from the caller
-
clearRequestId
public void clearRequestId()Set up the request id for the current thread. This may be null to create a new request id value. -
getRequestId
Return the requestId for this thread.- Returns:
- string UUID
-
toString
JSON-style toString.
-