Class XGoogSpannerRequestId

java.lang.Object
com.google.cloud.spanner.XGoogSpannerRequestId

@InternalApi public class XGoogSpannerRequestId extends Object
  • Field Details

    • REQUEST_ID_HEADER_NAME

      public static String REQUEST_ID_HEADER_NAME
    • REQUEST_ID_HEADER_KEY

      public static final io.grpc.Metadata.Key<String> REQUEST_ID_HEADER_KEY
    • REQUEST_ID_CALL_OPTIONS_KEY

      public static final io.grpc.CallOptions.Key<XGoogSpannerRequestId> REQUEST_ID_CALL_OPTIONS_KEY
  • Method Details

    • of

      public static XGoogSpannerRequestId of(long nthClientId, long nthChannelId, long nthRequest, long attempt)
    • of

      public static XGoogSpannerRequestId of(String s)
    • getHeaderValue

      public String getHeaderValue()
      Returns the string representation of this RequestId as it should be sent to Spanner.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • debugToString

      public String debugToString()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • incrementAttempt

      public void incrementAttempt()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setChannelId

      public void setChannelId(long channelId)