Class ServiceStateChangedEvent
- java.lang.Object
-
- com.couchbase.client.core.cnc.AbstractEvent
-
- com.couchbase.client.core.cnc.events.service.ServiceStateChangedEvent
-
- All Implemented Interfaces:
Event
public class ServiceStateChangedEvent extends AbstractEvent
This event is raised every time aService
changes its 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 ServiceStateChangedEvent(ServiceContext context, ServiceState oldState, ServiceState 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.ServiceState
newState()
ServiceState
oldState()
-
Methods inherited from class com.couchbase.client.core.cnc.AbstractEvent
category, context, created, createdAt, duration, severity, toString
-
-
-
-
Constructor Detail
-
ServiceStateChangedEvent
public ServiceStateChangedEvent(ServiceContext context, ServiceState oldState, ServiceState newState)
-
-
Method Detail
-
oldState
public ServiceState oldState()
-
newState
public ServiceState newState()
-
-