Package io.dingodb.store
Interface Store.TxnHeartBeatResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Store.TxnHeartBeatResponse,Store.TxnHeartBeatResponse.Builder
- Enclosing class:
- Store
public static interface Store.TxnHeartBeatResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetError()error codeerror codelongThe TTL actually set on the requested lock.response inforesponse infothe txn_result is one of the following: 1.the txn_result is one of the following: 1.booleanhasError()error codebooleanresponse 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: Heartbeat is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when heartbeat. 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: Heartbeat is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when heartbeat. 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: Heartbeat is sent to a lock that's not the primary. 2. TxnNotFound: Txn not found when heartbeat. 3. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3; -
getLockTtl
long getLockTtl()The TTL actually set on the requested lock.
int64 lock_ttl = 4;- Returns:
- The lockTtl.
-