Package io.dingodb.store
Interface Store.TxnCheckTxnStatusResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Store.TxnCheckTxnStatusResponse,Store.TxnCheckTxnStatusResponse.Builder
- Enclosing class:
- Store
public static interface Store.TxnCheckTxnStatusResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe action performed by dingo-store (and why if the action is to rollback).intThe action performed by dingo-store (and why if the action is to rollback).longif the transaction of the lock is committed, the commit_ts is returnedgetError()error codeerror code.dingodb.pb.store.LockInfo lock_info = 7;.dingodb.pb.store.LockInfo lock_info = 7;longThree kinds of transaction status: locked: lock_ttl > 0 committed: commit_ts > 0 rollbacked: lock_ttl = 0 && commit_ts = 0response inforesponse infothe txn_result is one of the following: 1.the txn_result is one of the following: 1.booleanhasError()error codeboolean.dingodb.pb.store.LockInfo lock_info = 7;booleanresponse infobooleanthe txn_result is one of the following: 1.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasResponseInfo
boolean hasResponseInfo()response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Returns:
- Whether the responseInfo field is set.
-
getResponseInfo
Common.ResponseInfo getResponseInfo()response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Returns:
- The responseInfo.
-
getResponseInfoOrBuilder
Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
hasError
boolean hasError()error code
.dingodb.pb.error.Error error = 2;- Returns:
- Whether the error field is set.
-
getError
ErrorOuterClass.Error getError()error code
.dingodb.pb.error.Error error = 2;- Returns:
- The error.
-
getErrorOrBuilder
ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()error code
.dingodb.pb.error.Error error = 2; -
hasTxnResult
boolean hasTxnResult()the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Returns:
- Whether the txnResult field is set.
-
getTxnResult
Store.TxnResultInfo getTxnResult()the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Returns:
- The txnResult.
-
getTxnResultOrBuilder
Store.TxnResultInfoOrBuilder getTxnResultOrBuilder()the txn_result is one of the following: 1. PrimaryMismatch: CheckTxnStatus is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when checking txn status. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3; -
getLockTtl
long getLockTtl()Three kinds of transaction status: locked: lock_ttl > 0 committed: commit_ts > 0 rollbacked: lock_ttl = 0 && commit_ts = 0
int64 lock_ttl = 4;- Returns:
- The lockTtl.
-
getCommitTs
long getCommitTs()if the transaction of the lock is committed, the commit_ts is returned
int64 commit_ts = 5;- Returns:
- The commitTs.
-
getActionValue
int getActionValue()The action performed by dingo-store (and why if the action is to rollback). If the min_commit_ts of the lock is pushed, the Action of the response will be MinCommitTSPushed.
.dingodb.pb.store.Action action = 6;- Returns:
- The enum numeric value on the wire for action.
-
getAction
Store.Action getAction()The action performed by dingo-store (and why if the action is to rollback). If the min_commit_ts of the lock is pushed, the Action of the response will be MinCommitTSPushed.
.dingodb.pb.store.Action action = 6;- Returns:
- The action.
-
hasLockInfo
boolean hasLockInfo().dingodb.pb.store.LockInfo lock_info = 7;- Returns:
- Whether the lockInfo field is set.
-
getLockInfo
Store.LockInfo getLockInfo().dingodb.pb.store.LockInfo lock_info = 7;- Returns:
- The lockInfo.
-
getLockInfoOrBuilder
Store.LockInfoOrBuilder getLockInfoOrBuilder().dingodb.pb.store.LockInfo lock_info = 7;
-