Class EndpointDisconnectionFailedEvent
java.lang.Object
com.couchbase.client.core.cnc.AbstractEvent
com.couchbase.client.core.cnc.events.endpoint.EndpointDisconnectionFailedEvent
- All Implemented Interfaces:
Event
This event is raised if an endpoint disconnect attempt failed for some reason.
- Since:
- 2.0.0
-
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
ConstructorDescriptionEndpointDisconnectionFailedEvent
(Duration duration, EndpointContext context, Throwable cause) Creates a new endpoint disconnection failed event. -
Method Summary
Modifier and TypeMethodDescriptioncause()
Returns the cause of the failure.A textual description with more information about the event.
-
Constructor Details
-
EndpointDisconnectionFailedEvent
public EndpointDisconnectionFailedEvent(Duration duration, EndpointContext context, Throwable cause) Creates a new endpoint disconnection failed event.- Parameters:
duration
- the duration of the event.context
- the endpoint context.cause
- the cause of the failure.
-
-
Method Details
-
cause
Returns the cause of the failure.- Returns:
- the throwable if present.
-
description
Description copied from interface:Event
A textual description with more information about the event.- Returns:
- the description, if set.
-