Class TransactionCleanupAttempt

  • All Implemented Interfaces:

    public class TransactionCleanupAttempt
    extends TransactionEvent
    Emitted when the lost transactions cleanup process discovered a lost transaction and attempted to clean it up.

    Contains whether this attempt was successful, and all logs related to the attempt.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Event

        com.couchbase.client.core.cnc.Event.Category, com.couchbase.client.core.cnc.Event.Severity
    • Field Summary

      • Fields inherited from interface com.couchbase.client.core.cnc.Event

    • Constructor Summary

      Constructor Description
      TransactionCleanupAttempt​(com.couchbase.client.core.cnc.Event.Severity severity, boolean success, boolean isRegular, java.util.List<LogDefer> logs, java.lang.String attemptId, java.lang.String atrId, atrCollection, CleanupRequest req, java.lang.String addlDebug)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String atrBucket()
      Deprecated. atrCollection()  
      java.lang.String atrId()  
      java.lang.String attemptId()  
      java.lang.String description()  
      java.util.List<LogDefer> logs()  
      boolean success()
      Provided so the app check if this event is regarded as a success, and if not, output any logs it has.
      • Methods inherited from class com.couchbase.client.core.cnc.AbstractEvent

        category, context, created, createdAt, duration, severity, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.couchbase.client.core.cnc.Event

    • Constructor Detail

      • TransactionCleanupAttempt

        public TransactionCleanupAttempt​(com.couchbase.client.core.cnc.Event.Severity severity,
                                         boolean success,
                                         boolean isRegular,
                                         java.util.List<LogDefer> logs,
                                         java.lang.String attemptId,
                                         java.lang.String atrId,
                                         CleanupRequest req,
                                         java.lang.String addlDebug)
    • Method Detail

      • success

        public boolean success()
        Description copied from class: TransactionEvent
        Provided so the app check if this event is regarded as a success, and if not, output any logs it has.
        Specified by:
        success in class TransactionEvent
      • attemptId

        public java.lang.String attemptId()
      • atrId

        public java.lang.String atrId()
      • atrBucket

        public java.lang.String atrBucket()
      • atrCollection

        public atrCollection()
      • description

        public java.lang.String description()