Package com.google.cloud.spanner
Class XGoogSpannerRequestId
java.lang.Object
com.google.cloud.spanner.XGoogSpannerRequestId
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.grpc.CallOptions.Key<XGoogSpannerRequestId>static final io.grpc.Metadata.Key<String>static String -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the string representation of this RequestId as it should be sent to Spanner.inthashCode()voidstatic XGoogSpannerRequestIdof(long nthClientId, long nthChannelId, long nthRequest, long attempt) static XGoogSpannerRequestIdvoidsetChannelId(long channelId) toString()
-
Field Details
-
REQUEST_ID_HEADER_NAME
-
REQUEST_ID_HEADER_KEY
-
REQUEST_ID_CALL_OPTIONS_KEY
-
-
Method Details
-
of
public static XGoogSpannerRequestId of(long nthClientId, long nthChannelId, long nthRequest, long attempt) -
of
-
getHeaderValue
Returns the string representation of this RequestId as it should be sent to Spanner. -
toString
-
debugToString
-
equals
-
incrementAttempt
public void incrementAttempt() -
hashCode
public int hashCode() -
setChannelId
public void setChannelId(long channelId)
-