public class TransactionAttempt
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.Optional<com.couchbase.client.java.ReactiveCollection> |
atrCollection()
Returns the bucket that this attempt's Active Transaction Record (ATR) was stored on.
|
java.util.Optional<java.lang.String> |
atrId()
Returns the ID of this attempt's Active Transaction Record (ATR).
|
java.lang.String |
attemptId()
The globally unique ID of this attempt.
|
AttemptStates |
finalState()
Returns the
AttemptStates state that this attempt reached. |
java.util.List<com.couchbase.client.core.msg.kv.MutationToken> |
mutationTokens() |
java.util.List<java.lang.String> |
stagedInsertIds()
The IDs of any documents that were successfully staged to be inserted by this attempt.
|
java.util.List<java.lang.String> |
stagedRemoveIds()
The IDs of any documents that were successfully staged to be removed by this attempt.
|
java.util.List<java.lang.String> |
stagedReplaceIds()
The IDs of any documents that were successfully staged to be replaced by this attempt.
|
java.util.Optional<java.lang.Throwable> |
terminatedByException()
If the attempt was ended by a transaction, this
Optional will contain it. |
java.time.Duration |
timeTaken()
Returns the time taken by this attempt.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public java.time.Duration timeTaken()
public java.util.Optional<com.couchbase.client.java.ReactiveCollection> atrCollection()
public java.util.Optional<java.lang.String> atrId()
public AttemptStates finalState()
AttemptStates
state that this attempt reached.public java.lang.String attemptId()
public java.util.List<java.lang.String> stagedInsertIds()
public java.util.List<java.lang.String> stagedReplaceIds()
public java.util.List<java.lang.String> stagedRemoveIds()
public java.util.Optional<java.lang.Throwable> terminatedByException()
Optional
will contain it.public java.util.List<com.couchbase.client.core.msg.kv.MutationToken> mutationTokens()