java.lang.Object
org.odpi.openmetadata.frameworks.auditlog.requestid.RequestId

public class RequestId extends Object
Provides access to the request id for the current thread. It also manages its creation and update.
  • Constructor Details

    • RequestId

      public RequestId()
      Default constructor initializes the request id with a random UUID.
  • Method Details

    • setRequestId

      public void setRequestId(String requestIdValue)
      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

      public String getRequestId()
      Return the requestId for this thread.
      Returns:
      string UUID
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class Object
      Returns:
      list of properties and their values.