public class ImmediateEventDispatcher extends Object implements EventDispatcher
| Constructor and Description |
|---|
ImmediateEventDispatcher(DatabaseChangeListener listener) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(Duration timeout) |
void |
dispatch(DatabaseChangeEvent event) |
void |
gracefulShutdown() |
void |
shutdownNow() |
public ImmediateEventDispatcher(DatabaseChangeListener listener)
public void dispatch(DatabaseChangeEvent event)
dispatch in interface EventDispatcherpublic boolean awaitTermination(Duration timeout) throws InterruptedException
awaitTermination in interface EventDispatcherInterruptedExceptionpublic void gracefulShutdown()
gracefulShutdown in interface EventDispatcherpublic void shutdownNow()
shutdownNow in interface EventDispatcherCopyright © 2021 Couchbase, Inc.. All rights reserved.