Package io.deephaven.enterprise.remote
Class ControllerStateWatcher.PersistentQueryStateToken
java.lang.Object
io.deephaven.enterprise.remote.ControllerStateWatcher.PersistentQueryStateToken
- All Implemented Interfaces:
RemoteTableStateWatcher.StateToken
- Enclosing class:
- ControllerStateWatcher
public static final class ControllerStateWatcher.PersistentQueryStateToken
extends Object
implements RemoteTableStateWatcher.StateToken
A
RemoteTableStateWatcher.StateToken backed by a PersistentQueryInfoMessage-
Constructor Summary
ConstructorsConstructorDescriptionPersistentQueryStateToken(@Nullable PersistentQueryInfoMessage pqi) Create a newControllerStateWatcher.PersistentQueryStateToken. -
Method Summary
Modifier and TypeMethodDescription@Nullable PersistentQueryInfoMessagebooleanisReady()Is the upstream ready for subscriptions?booleanisSameTarget(@Nullable RemoteTableStateWatcher.StateToken other) Check if thisRemoteTableStateWatcher.StateTokenrepresents the same target connection.
-
Constructor Details
-
PersistentQueryStateToken
Create a newControllerStateWatcher.PersistentQueryStateToken.- Parameters:
pqi- the info (or null)
-
-
Method Details
-
isReady
public boolean isReady()Description copied from interface:RemoteTableStateWatcher.StateTokenIs the upstream ready for subscriptions?- Specified by:
isReadyin interfaceRemoteTableStateWatcher.StateToken- Returns:
- true if it is ready for subscriptions.
-
isSameTarget
Description copied from interface:RemoteTableStateWatcher.StateTokenCheck if thisRemoteTableStateWatcher.StateTokenrepresents the same target connection. This is useful, for example, if a PQ Spare replaces a worker.- Specified by:
isSameTargetin interfaceRemoteTableStateWatcher.StateToken- Parameters:
other- theRemoteTableStateWatcher.StateTokento compare with- Returns:
- true if the other token represents the same target
-
getQueryInfo
-