Class TransactionCleanupAttempt

  • All Implemented Interfaces:
    com.couchbase.client.core.cnc.Event

    @Volatile
    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

        CATEGORY_PREFIX
    • Constructor Summary

      Constructors 
      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, com.couchbase.client.java.ReactiveCollection 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.
      com.couchbase.client.java.ReactiveCollection 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

        cause
    • 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,
                                         com.couchbase.client.java.ReactiveCollection atrCollection,
                                         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

        @Deprecated
        public java.lang.String atrBucket()
        Deprecated.
      • atrCollection

        public com.couchbase.client.java.ReactiveCollection atrCollection()
      • description

        public java.lang.String description()