Package io.pravega.common.tracing
Class RequestTag
- java.lang.Object
-
- io.pravega.common.tracing.RequestTag
-
public class RequestTag extends java.lang.ObjectClass to store a requestDescriptor, requestId pair in a cache (i.e., RequestTracker) for tracing purposes.
-
-
Field Summary
Fields Modifier and Type Field Description static longNON_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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetRequestDescriptor()The request descriptor is the key to access the client-generated requestId.longgetRequestId()Client-generated id that will enable us to trace the end-to-end lifecycle of a request.inthashCode()booleanisTracked()java.lang.StringtoString()
-
-
-
Field Detail
-
NON_EXISTENT_ID
public static final long NON_EXISTENT_ID
- See Also:
- Constant Field Values
-
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-