Class XGoogSpannerRequestId (6.119.0)
Stay organized with collections
Save and categorize content based on your preferences.
public class XGoogSpannerRequestId
Inheritance
Object >
XGoogSpannerRequestId
Static Fields
REQUEST_ID_CALL_OPTIONS_KEY
public static final CallOptions.Key<XGoogSpannerRequestId> REQUEST_ID_CALL_OPTIONS_KEY
public static final Metadata.Key<String> REQUEST_ID_HEADER_KEY
| Field Value |
| Type |
Description |
io.grpc.Metadata.Key<String> |
|
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
|
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
|
Methods
debugToString()
public String debugToString()
| Returns |
| Type |
Description |
String |
|
equals(Object other)
public boolean equals(Object other)
| Parameter |
| Name |
Description |
other |
Object
|
Overrides
public String getHeaderValue()
Returns the string representation of this RequestId as it should be sent to Spanner.
| Returns |
| Type |
Description |
String |
|
getLogicalRequestKey()
public String getLogicalRequestKey()
Returns a stable identifier for the logical request, excluding channel and attempt.
This can be used to associate retry-local state across attempts of the same RPC without
affecting unrelated requests.
| Returns |
| Type |
Description |
String |
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
incrementAttempt()
public void incrementAttempt()
setChannelId(long channelId)
public void setChannelId(long channelId)
| Parameter |
| Name |
Description |
channelId |
long
|
toString()
| Returns |
| Type |
Description |
String |
|
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-31 UTC.
[null,null,["Last updated 2026-07-31 UTC."],[],[]]