Package com.couchbase.client.core.cnc
Class AbstractEvent
- java.lang.Object
-
- com.couchbase.client.core.cnc.AbstractEvent
-
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
BucketClosedEvent,BucketConfigRefreshFailedEvent,BucketConfigUpdatedEvent,BucketOpenedEvent,BucketOpenFailedEvent,BucketOpenInitiatedEvent,BucketOpenRetriedEvent,ChannelClosedProactivelyEvent,CollectionMapDecodingFailedEvent,CollectionMapRefreshFailedEvent,CollectionMapRefreshIgnoredEvent,CollectionMapRefreshSucceededEvent,CollectionOutdatedHandledEvent,ConfigIgnoredEvent,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,IndividualGlobalConfigLoadFailedEvent,IndividualReplicaGetFailedEvent,InitGlobalConfigFailedEvent,InsecureSecurityConfigDetectedEvent,InvalidPacketDetectedEvent,InvalidRequestDetectedEvent,KeyValueErrorMapCodeHandledEvent,LatencyMetricsAggregatedEvent,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,SelectBucketCompletedEvent,SelectBucketFailedEvent,ServiceAddedEvent,ServiceAddIgnoredEvent,ServiceConnectInitiatedEvent,ServiceDisconnectInitiatedEvent,ServiceReconfigurationFailedEvent,ServiceRemovedEvent,ServiceRemoveIgnoredEvent,ServiceStateChangedEvent,ShutdownCompletedEvent,ShutdownInitiatedEvent,UnexpectedEndpointConnectionFailedEvent,UnexpectedEndpointDisconnectedEvent,UnknownResponseReceivedEvent,UnknownResponseStatusReceivedEvent,UnknownSaslMechanismDetectedEvent,UnsolicitedFeaturesReturnedEvent,UnsupportedResponseTypeReceivedEvent,WaitUntilReadyCompletedEvent,WriteTrafficCapturedEvent
public abstract class AbstractEvent extends Object implements Event
ThisEventimplementation can be used as a base event to inherit from.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Event
Event.Category, Event.Severity
-
-
Field Summary
-
Fields inherited from interface com.couchbase.client.core.cnc.Event
CATEGORY_PREFIX
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEvent(Event.Severity severity, Event.Category category, Duration duration, Context context)protectedAbstractEvent(Event.Severity severity, String category, Duration duration, Context context)Creates a new abstract event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcategory()The Category of this event.Contextcontext()The context this event is referencing.longcreatedAt()Contains a nano timestamp when the event was created.Durationduration()Returns the duration of this event.Event.Severityseverity()The Severity of this event.StringtoString()-
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, description
-
-
-
-
Constructor Detail
-
AbstractEvent
protected AbstractEvent(Event.Severity severity, Event.Category category, Duration duration, Context context)
-
AbstractEvent
protected AbstractEvent(Event.Severity severity, String category, Duration duration, Context context)
Creates a new abstract event.- Parameters:
severity- the severity to use.category- the category to use.duration- the duration for this event.context- the context if provided.
-
-
Method Detail
-
severity
public Event.Severity severity()
Description copied from interface:EventThe Severity of this event.
-
category
public String category()
Description copied from interface:EventThe Category of this event.
-
duration
public Duration duration()
Description copied from interface:EventReturns the duration of this event.
-
context
public Context context()
Description copied from interface:EventThe context this event is referencing.
-
createdAt
public long createdAt()
Description copied from interface:EventContains a nano timestamp when the event was created.
-
-