Class RequestTag


  • public class RequestTag
    extends java.lang.Object
    Class to store a requestDescriptor, requestId pair in a cache (i.e., RequestTracker) for tracing purposes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long NON_EXISTENT_ID  
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestTag​(java.lang.String requestDescriptor, long requestId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getRequestDescriptor()
      The request descriptor is the key to access the client-generated requestId.
      long getRequestId()
      Client-generated id that will enable us to trace the end-to-end lifecycle of a request.
      int hashCode()  
      boolean isTracked()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RequestTag

        @ConstructorProperties({"requestDescriptor","requestId"})
        public RequestTag​(java.lang.String requestDescriptor,
                          long requestId)
    • Method Detail

      • isTracked

        public boolean isTracked()
      • getRequestDescriptor

        public java.lang.String getRequestDescriptor()
        The request descriptor is the key to access the client-generated requestId.
      • getRequestId

        public long getRequestId()
        Client-generated id that will enable us to trace the end-to-end lifecycle of a request.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object