Class TransactionAttempt


  • @Deprecated
    public class TransactionAttempt
    extends java.lang.Object
    Deprecated.
    since 1.1.4, this should no longer be used.
    Each transaction involves one or more attempts at performing the application's transaction logic. This class stores various details of the attempt, for debugging purposes.

    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • timeTaken

        public java.time.Duration timeTaken()
        Deprecated.
        Returns the time taken by this attempt.
      • atrCollection

        public java.util.Optional<com.couchbase.client.java.ReactiveCollection> atrCollection()
        Deprecated.
        Returns the bucket that this attempt's Active Transaction Record (ATR) was stored on. It's Optional as the ATR is only involved if the attempt involved any document mutations.
      • atrId

        public java.util.Optional<java.lang.String> atrId()
        Deprecated.
        Returns the ID of this attempt's Active Transaction Record (ATR). It's Optional as the ATR is only involved if the attempt involved any document mutations.
      • attemptId

        public java.lang.String attemptId()
        Deprecated.
        The globally unique ID of this attempt.
      • stagedInsertIds

        public java.util.List<java.lang.String> stagedInsertIds()
        Deprecated.
        The IDs of any documents that were successfully staged to be inserted by this attempt.
      • stagedReplaceIds

        public java.util.List<java.lang.String> stagedReplaceIds()
        Deprecated.
        The IDs of any documents that were successfully staged to be replaced by this attempt.
      • stagedRemoveIds

        public java.util.List<java.lang.String> stagedRemoveIds()
        Deprecated.
        The IDs of any documents that were successfully staged to be removed by this attempt.
      • terminatedByException

        public java.util.Optional<java.lang.Throwable> terminatedByException()
        Deprecated.
        If the attempt was ended by an error, this Optional will contain it. Note that this error is simply the one that propagated through the lambda. It is not guaranteed to be the root cause of the failure, e.g. if concurrent operations are done, it is a race as to which error propagates first.
      • mutationTokens

        public java.util.List<com.couchbase.client.core.msg.kv.MutationToken> mutationTokens()
        Deprecated.