Class XGoogSpannerRequestId (6.107.0)

public class XGoogSpannerRequestId

Inheritance

Object > XGoogSpannerRequestId

Static Fields

REQUEST_ID_CALL_OPTIONS_KEY

public static final CallOptions.Key<XGoogSpannerRequestId> REQUEST_ID_CALL_OPTIONS_KEY
Field Value
Type Description
io.grpc.CallOptions.Key<XGoogSpannerRequestId>

REQUEST_ID_HEADER_KEY

public static final Metadata.Key<String> REQUEST_ID_HEADER_KEY
Field Value
Type Description
io.grpc.Metadata.Key<String>

REQUEST_ID_HEADER_NAME

public static String REQUEST_ID_HEADER_NAME
Field Value
Type Description
String

Static Methods

of(String s)

public static XGoogSpannerRequestId of(String s)
Parameter
Name Description
s String
Returns
Type Description
XGoogSpannerRequestId

of(long nthClientId, long nthChannelId, long nthRequest, long attempt)

public static XGoogSpannerRequestId of(long nthClientId, long nthChannelId, long nthRequest, long attempt)
Parameters
Name Description
nthClientId long
nthChannelId long
nthRequest long
attempt long
Returns
Type Description
XGoogSpannerRequestId

Methods

debugToString()

public String debugToString()
Returns
Type Description
String

equals(Object other)

public boolean equals(Object other)
Parameter
Name Description
other Object
Returns
Type Description
boolean
Overrides

getHeaderValue()

public String getHeaderValue()

Returns the string representation of this RequestId as it should be sent to Spanner.

Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

incrementAttempt()

public void incrementAttempt()

setChannelId(long channelId)

public void setChannelId(long channelId)
Parameter
Name Description
channelId long

toString()

public String toString()
Returns
Type Description
String
Overrides