Class Store.TxnCheckTxnStatusRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.store.Store.TxnCheckTxnStatusRequest
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Store.TxnCheckTxnStatusRequestOrBuilder, Serializable
Enclosing class:
Store

public static final class Store.TxnCheckTxnStatusRequest extends com.google.protobuf.GeneratedMessageV3 implements Store.TxnCheckTxnStatusRequestOrBuilder
 CheckTxnStatusRequest checks the status of a transaction.
 If the transaction is rollbacked/committed, return that result.
 If the TTL of the transaction is exhausted, abort that transaction and inform the caller.
 Otherwise, returns the TTL information for the transaction.
 
Protobuf type dingodb.pb.store.TxnCheckTxnStatusRequest
See Also:
  • Field Details

    • REQUEST_INFO_FIELD_NUMBER

      public static final int REQUEST_INFO_FIELD_NUMBER
      See Also:
    • CONTEXT_FIELD_NUMBER

      public static final int CONTEXT_FIELD_NUMBER
      See Also:
    • PRIMARY_KEY_FIELD_NUMBER

      public static final int PRIMARY_KEY_FIELD_NUMBER
      See Also:
    • LOCK_TS_FIELD_NUMBER

      public static final int LOCK_TS_FIELD_NUMBER
      See Also:
    • CALLER_START_TS_FIELD_NUMBER

      public static final int CALLER_START_TS_FIELD_NUMBER
      See Also:
    • CURRENT_TS_FIELD_NUMBER

      public static final int CURRENT_TS_FIELD_NUMBER
      See Also:
    • FORCE_SYNC_COMMIT_FIELD_NUMBER

      public static final int FORCE_SYNC_COMMIT_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasRequestInfo

      public boolean hasRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      hasRequestInfo in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      Whether the requestInfo field is set.
    • getRequestInfo

      public Common.RequestInfo getRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      getRequestInfo in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The requestInfo.
    • getRequestInfoOrBuilder

      public Common.RequestInfoOrBuilder getRequestInfoOrBuilder()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      getRequestInfoOrBuilder in interface Store.TxnCheckTxnStatusRequestOrBuilder
    • hasContext

      public boolean hasContext()
      .dingodb.pb.store.Context context = 2;
      Specified by:
      hasContext in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      Whether the context field is set.
    • getContext

      public Store.Context getContext()
      .dingodb.pb.store.Context context = 2;
      Specified by:
      getContext in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The context.
    • getContextOrBuilder

      public Store.ContextOrBuilder getContextOrBuilder()
      .dingodb.pb.store.Context context = 2;
      Specified by:
      getContextOrBuilder in interface Store.TxnCheckTxnStatusRequestOrBuilder
    • getPrimaryKey

      public com.google.protobuf.ByteString getPrimaryKey()
       Primary key and lock ts together to locate the primary lock of a transaction.
       
      bytes primary_key = 3;
      Specified by:
      getPrimaryKey in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The primaryKey.
    • getLockTs

      public long getLockTs()
       Starting timestamp oracle of the transaction being checked.
       
      int64 lock_ts = 4;
      Specified by:
      getLockTs in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The lockTs.
    • getCallerStartTs

      public long getCallerStartTs()
       The start timestamp oracle of the transaction which this request is part of.
       If the the lock_ts < caller_start_ts and the lock_ttl is not outdated, the transaction is not expired.
       In this case, store will try to update the lock's min_commit_ts to caller_start_ts, in order to prevent the
       read-write conflict. If the min_commit_ts is updated, the Action of the response will be MinCommitTSPushed.
       
      int64 caller_start_ts = 5;
      Specified by:
      getCallerStartTs in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The callerStartTs.
    • getCurrentTs

      public long getCurrentTs()
       The client must specify the current time to dingo-store using this timestamp oracle.
       It is used to check TTL timeouts. It may be inaccurate.
       
      int64 current_ts = 6;
      Specified by:
      getCurrentTs in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The currentTs.
    • getForceSyncCommit

      public boolean getForceSyncCommit()
       This field is set to true only if the transaction is known to fall back from async commit.
       Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
       field in the primary lock is true.
       
      bool force_sync_commit = 7;
      Specified by:
      getForceSyncCommit in interface Store.TxnCheckTxnStatusRequestOrBuilder
      Returns:
      The forceSyncCommit.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Store.TxnCheckTxnStatusRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Store.TxnCheckTxnStatusRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.TxnCheckTxnStatusRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Store.TxnCheckTxnStatusRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Store.TxnCheckTxnStatusRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Store.TxnCheckTxnStatusRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Store.TxnCheckTxnStatusRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Store.TxnCheckTxnStatusRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<Store.TxnCheckTxnStatusRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Store.TxnCheckTxnStatusRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder