Class ImmediateEventDispatcher
java.lang.Object
com.couchbase.client.dcp.highlevel.internal.ImmediateEventDispatcher
- All Implemented Interfaces:
EventDispatcher
Dispatches events in the same thread that calls the dispatch method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(Duration timeout) voiddispatch(DatabaseChangeEvent event) voidvoid
-
Constructor Details
-
ImmediateEventDispatcher
-
-
Method Details
-
dispatch
- Specified by:
dispatchin interfaceEventDispatcher
-
awaitTermination
- Specified by:
awaitTerminationin interfaceEventDispatcher- Throws:
InterruptedException
-
gracefulShutdown
public void gracefulShutdown()- Specified by:
gracefulShutdownin interfaceEventDispatcher
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceEventDispatcher
-