Package com.couchbase.client.core.cnc
Interface Event
- All Known Implementing Classes:
AbstractEvent
,BucketClosedEvent
,BucketConfigRefreshFailedEvent
,BucketConfigUpdatedEvent
,BucketOpenedEvent
,BucketOpenInitiatedEvent
,ChannelClosedProactivelyEvent
,CollectionMapDecodingFailedEvent
,CollectionMapRefreshFailedEvent
,ConfigIgnoredEvent
,CoreCreatedEvent
,DnsSrvLookupDisabledEvent
,DnsSrvLookupFailedEvent
,DnsSrvRecordsLoadedEvent
,DurabilityTimeoutCoercedEvent
,EndpointConnectedEvent
,EndpointConnectionAbortedEvent
,EndpointConnectionFailedEvent
,EndpointConnectionIgnoredEvent
,EndpointDisconnectedEvent
,EndpointDisconnectionFailedEvent
,EndpointStateChangedEvent
,EndpointWriteFailedEvent
,ErrorMapLoadedEvent
,ErrorMapLoadingFailedEvent
,ErrorMapUndecodableEvent
,FeaturesNegotiatedEvent
,FeaturesNegotiationFailedEvent
,GenericFailureDetectedEvent
,GlobalConfigUpdatedEvent
,HighIdleHttpConnectionTimeoutConfiguredEvent
,IdleEndpointRemovedEvent
,IdleStreamingEndpointClosedEvent
,IndividualGlobalConfigLoadFailedEvent
,IndividualReplicaGetFailedEvent
,InitGlobalConfigFailedEvent
,InsecureSecurityConfigDetectedEvent
,InvalidPacketDetectedEvent
,InvalidRequestDetectedEvent
,KeyValueErrorMapCodeHandledEvent
,LatencyMetricsAggregatedEvent
,NodeConnectedEvent
,NodeDisconnectedEvent
,NodeDisconnectIgnoredEvent
,NodeLocatorBugIdentifiedEvent
,NodePartitionLengthNotEqualEvent
,NodeStateChangedEvent
,OrphanRecordDroppedEvent
,OrphanReporterFailureDetectedEvent
,OrphansRecordedEvent
,OverThresholdRequestsRecordedEvent
,PreparedStatementRetriedEvent
,ReadTrafficCapturedEvent
,ReconfigurationCompletedEvent
,ReconfigurationErrorDetectedEvent
,ReconfigurationIgnoredEvent
,RequestNotRetriedEvent
,RequestRetryScheduledEvent
,SaslAuthenticationCompletedEvent
,SaslAuthenticationFailedEvent
,SaslAuthenticationRestartedEvent
,SaslMechanismsListedEvent
,SaslMechanismsListingFailedEvent
,SaslMechanismsSelectedEvent
,SecureConnectionFailedEvent
,SeedNodesUpdatedEvent
,SelectBucketCompletedEvent
,SelectBucketFailedEvent
,ServiceAddedEvent
,ServiceAddIgnoredEvent
,ServiceConnectInitiatedEvent
,ServiceDisconnectInitiatedEvent
,ServiceReconfigurationFailedEvent
,ServiceRemovedEvent
,ServiceRemoveIgnoredEvent
,ServiceStateChangedEvent
,ShutdownCompletedEvent
,ShutdownInitiatedEvent
,SuspiciousExpiryDurationEvent
,UnexpectedEndpointConnectionFailedEvent
,UnexpectedEndpointDisconnectedEvent
,UnknownResponseReceivedEvent
,UnknownResponseStatusReceivedEvent
,UnknownSaslMechanismDetectedEvent
,UnsolicitedFeaturesReturnedEvent
,UnsupportedResponseTypeReceivedEvent
,WriteTrafficCapturedEvent
public interface Event
The parent interface for all events pushed through the command and
control system.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Event.Category
Describes the category of any given event.static class
Event.Severity
Describes the severity of any given event. -
Field Summary
Fields Modifier and Type Field Description static String
CATEGORY_PREFIX
-
Method Summary
Modifier and Type Method Description String
category()
The Category of this event.default Throwable
cause()
If present, holds the cause for this event.Context
context()
The context this event is referencing.long
createdAt()
Contains a nano timestamp when the event was created.String
description()
A textual description with more information about the event.Duration
duration()
Returns the duration of this event.Event.Severity
severity()
The Severity of this event.
-
Field Details
-
CATEGORY_PREFIX
- See Also:
- Constant Field Values
-
-
Method Details
-
createdAt
long createdAt()Contains a nano timestamp when the event was created.- Returns:
- the time this event got created.
-
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
If present, holds the cause for this event. Usually present if raised because of an excetion.- Returns:
- the throwable if present.
-