Package com.couchbase.client.core.cnc
Interface Event
-
- All Known Implementing Classes:
AbstractEvent,BucketClosedEvent,BucketConfigRefreshFailedEvent,BucketConfigUpdatedEvent,BucketOpenedEvent,BucketOpenFailedEvent,BucketOpenInitiatedEvent,BucketOpenRetriedEvent,ChannelClosedProactivelyEvent,CleanupFailedEvent,CollectionMapDecodingFailedEvent,CollectionMapRefreshFailedEvent,CollectionMapRefreshIgnoredEvent,CollectionMapRefreshSucceededEvent,CollectionOutdatedHandledEvent,ConfigIgnoredEvent,ConfigPushFailedEvent,ConnectionStringIgnoredEvent,CoreCreatedEvent,CustomTlsCiphersEnabledEvent,DnsSrvLookupDisabledEvent,DnsSrvLookupFailedEvent,DnsSrvRecordsLoadedEvent,DurabilityTimeoutCoercedEvent,EndpointConnectedEvent,EndpointConnectionAbortedEvent,EndpointConnectionFailedEvent,EndpointConnectionIgnoredEvent,EndpointDisconnectedEvent,EndpointDisconnectionFailedEvent,EndpointStateChangedEvent,EndpointWriteFailedEvent,ErrorMapLoadedEvent,ErrorMapLoadingFailedEvent,ErrorMapUndecodableEvent,FeaturesNegotiatedEvent,FeaturesNegotiationFailedEvent,GenericFailureDetectedEvent,GlobalConfigRetriedEvent,GlobalConfigUpdatedEvent,HighIdleHttpConnectionTimeoutConfiguredEvent,IdleEndpointRemovedEvent,IdleStreamingEndpointClosedEvent,IllegalDocumentStateEvent,IndividualGlobalConfigLoadFailedEvent,IndividualReplicaGetFailedEvent,InitGlobalConfigFailedEvent,InsecureSecurityConfigDetectedEvent,InvalidPacketDetectedEvent,InvalidRequestDetectedEvent,KeyValueErrorMapCodeHandledEvent,LatencyMetricsAggregatedEvent,LogEvent,NodeConnectedEvent,NodeDisconnectedEvent,NodeDisconnectIgnoredEvent,NodeLocatorBugIdentifiedEvent,NodePartitionLengthNotEqualEvent,NodeStateChangedEvent,NotMyVbucketReceivedEvent,OrphanRecordDroppedEvent,OrphanReporterFailureDetectedEvent,OrphansRecordedEvent,OverThresholdRequestsRecordedEvent,PreparedStatementRetriedEvent,ReadTrafficCapturedEvent,ReconfigurationCompletedEvent,ReconfigurationErrorDetectedEvent,ReconfigurationIgnoredEvent,RequestNotRetriedEvent,RequestRetryScheduledEvent,SaslAuthenticationCompletedEvent,SaslAuthenticationFailedEvent,SaslAuthenticationRestartedEvent,SaslMechanismsListedEvent,SaslMechanismsListingFailedEvent,SaslMechanismsSelectedEvent,SecureConnectionFailedEvent,SeedNodesUpdatedEvent,SeedNodesUpdateFailedEvent,SelectBucketCompletedEvent,SelectBucketFailedEvent,ServiceAddedEvent,ServiceAddIgnoredEvent,ServiceConnectInitiatedEvent,ServiceDisconnectInitiatedEvent,ServiceReconfigurationFailedEvent,ServiceRemovedEvent,ServiceRemoveIgnoredEvent,ServiceStateChangedEvent,ShutdownCompletedEvent,ShutdownInitiatedEvent,TlsRequiredButNotEnabledEvent,TooManyInstancesDetectedEvent,TransactionCleanupAttemptEvent,TransactionCleanupEndRunEvent,TransactionCleanupStartRunEvent,TransactionEvent,TransactionLogEvent,TransactionsStartedEvent,UnexpectedEndpointConnectionFailedEvent,UnexpectedEndpointDisconnectedEvent,UnknownResponseReceivedEvent,UnknownResponseStatusReceivedEvent,UnknownSaslMechanismDetectedEvent,UnsolicitedFeaturesReturnedEvent,UnsupportedResponseTypeReceivedEvent,WaitUntilReadyCompletedEvent,WatchdogInvalidStateIdentifiedEvent,WatchdogRunFailedEvent,WriteTrafficCapturedEvent
public interface EventThe parent interface for all events pushed through the command and control system.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEvent.CategoryDescribes the category of any given event.static classEvent.SeverityDescribes the severity of any given event.
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORY_PREFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Stringcategory()The Category of this event.default Throwablecause()If present, holds the cause for this event.Contextcontext()The context this event is referencing.Instantcreated()Returns the creation timestamp of this event.longcreatedAt()Deprecated.Please usecreated()instead.Stringdescription()A textual description with more information about the event.Durationduration()Returns the duration of this event.Event.Severityseverity()The Severity of this event.
-
-
-
Field Detail
-
CATEGORY_PREFIX
static final String CATEGORY_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createdAt
@Deprecated long createdAt()
Deprecated.Please usecreated()instead.Returns the value ofSystem.nanoTime()when the event was created.
-
created
Instant created()
Returns the creation timestamp of this event.
-
severity
Event.Severity severity()
The Severity of this event.- Returns:
- the event severity.
-
category
String category()
The Category of this event.- Returns:
- the event category.
-
duration
Duration duration()
Returns the duration of this event.- Returns:
- the duration of the even, 0 if not set.
-
context
Context context()
The context this event is referencing.- Returns:
- the referencing context.
-
description
String description()
A textual description with more information about the event.- Returns:
- the description, if set.
-
cause
default Throwable cause()
If present, holds the cause for this event. Usually present if raised because of an excetion.- Returns:
- the throwable if present.
-
-