Package com.couchbase.transactions.log
Class TransactionEvent
- java.lang.Object
-
- com.couchbase.client.core.cnc.AbstractEvent
-
- com.couchbase.transactions.log.TransactionEvent
-
- All Implemented Interfaces:
com.couchbase.client.core.cnc.Event
- Direct Known Subclasses:
CleanupFailedEvent
,IllegalDocumentState
,LostCleanupThreadEndedPrematurely
,TransactionCleanupAttempt
,TransactionCleanupEndRunEvent
,TransactionCleanupStartRunEvent
,TransactionsStarted
@Volatile public abstract class TransactionEvent extends com.couchbase.client.core.cnc.AbstractEvent
All transaction events derive from this.TransactionEvents at WARN or ERROR level are intended for serious issues that should be investigated, e.g. they should not just be logged. All applications should be listening for and handling events at this level.
At INFO or below they can convey various events that the application can ignore, but may be useful to be programmatically handled.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransactionEvent​(com.couchbase.client.core.cnc.Event.Severity severity, java.lang.String category)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<LogDefer>
logs()
abstract 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
-
-
-
-
Method Detail
-
success
@Volatile public abstract boolean success()
Provided so the app check if this event is regarded as a success, and if not, output any logs it has.
-
logs
@Volatile public java.util.List<LogDefer> logs()
-
-