Class EndpointStateChangedEvent
- java.lang.Object
-
- com.couchbase.client.core.cnc.AbstractEvent
-
- com.couchbase.client.core.cnc.events.endpoint.EndpointStateChangedEvent
-
- All Implemented Interfaces:
Event
public class EndpointStateChangedEvent extends AbstractEvent
This event is raised when an endpoint changes its underlying state.
-
-
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 Constructor Description EndpointStateChangedEvent(EndpointContext context, EndpointState oldState, EndpointState newState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
A textual description with more information about the event.EndpointState
newState()
EndpointState
oldState()
-
Methods inherited from class com.couchbase.client.core.cnc.AbstractEvent
category, context, created, createdAt, duration, severity, toString
-
-
-
-
Constructor Detail
-
EndpointStateChangedEvent
public EndpointStateChangedEvent(EndpointContext context, EndpointState oldState, EndpointState newState)
-
-
Method Detail
-
oldState
public EndpointState oldState()
-
newState
public EndpointState newState()
-
-