Package io.deephaven.enterprise.remote
Class ControllerStateWatcher
java.lang.Object
io.deephaven.enterprise.remote.ControllerStateWatcher
- All Implemented Interfaces:
RemoteTableStateWatcher
A
RemoteTableStateWatcher that uses a PersistentQueryControllerClient to produce tokens backed by
PersistentQueryInfoMessages.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classARemoteTableStateWatcher.StateTokenbacked by aPersistentQueryInfoMessageNested classes/interfaces inherited from interface io.deephaven.enterprise.remote.RemoteTableStateWatcher
RemoteTableStateWatcher.Observer, RemoteTableStateWatcher.StateToken -
Constructor Summary
ConstructorsConstructorDescriptionControllerStateWatcher(@NotNull PersistentQueryControllerClient client, @NotNull String queryName) Createa a newControllerStateWatcherthat monitors the state of the specified query by name. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearObserver(@NotNull RemoteTableStateWatcher.Observer o) Remove theRemoteTableStateWatcher.Observerset byRemoteTableStateWatcher.setObserver(Observer).Get a description of the watcher.voidsetObserver(@NotNull RemoteTableStateWatcher.Observer o) Set theRemoteTableStateWatcher.Observerto notify of state changes.
-
Constructor Details
-
ControllerStateWatcher
public ControllerStateWatcher(@NotNull @NotNull PersistentQueryControllerClient client, @NotNull @NotNull String queryName) Createa a newControllerStateWatcherthat monitors the state of the specified query by name.- Parameters:
client- thePersistentQueryControllerClientqueryName- the query name.
-
-
Method Details
-
setObserver
Description copied from interface:RemoteTableStateWatcherSet theRemoteTableStateWatcher.Observerto notify of state changes.- Specified by:
setObserverin interfaceRemoteTableStateWatcher- Parameters:
o- the observer
-
description
Description copied from interface:RemoteTableStateWatcherGet a description of the watcher.- Specified by:
descriptionin interfaceRemoteTableStateWatcher- Returns:
- a description.
-
clearObserver
Description copied from interface:RemoteTableStateWatcherRemove theRemoteTableStateWatcher.Observerset byRemoteTableStateWatcher.setObserver(Observer). The observer must be identical.- Specified by:
clearObserverin interfaceRemoteTableStateWatcher- Parameters:
o- the observer to remove. Must be identical to what was passed toRemoteTableStateWatcher.setObserver(Observer)
-