R
- type of the result to be returnedpublic class TransactionResult<R>
extends java.lang.Object
TxnId
of the
transaction.Modifier and Type | Field and Description |
---|---|
java.lang.Exception |
cause |
R |
result |
TxnId |
txnid |
Modifier and Type | Method and Description |
---|---|
boolean |
isAborted()
Returns true iff an exception was thrown during the execution of the transaction and that
exception was a
TransactionAbortedException |
boolean |
isSuccessful()
Returns true iff the transaction committed.
|
public final R result
public final TxnId txnid
public final java.lang.Exception cause
public boolean isSuccessful()
public boolean isAborted()
TransactionAbortedException