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 PersistentQueryInfoMessage
boolean
isReady()
Is the upstream ready for subscriptions?boolean
isSameTarget
(@Nullable RemoteTableStateWatcher.StateToken other) Check if thisRemoteTableStateWatcher.StateToken
represents 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.StateToken
Is the upstream ready for subscriptions?- Specified by:
isReady
in interfaceRemoteTableStateWatcher.StateToken
- Returns:
- true if it is ready for subscriptions.
-
isSameTarget
Description copied from interface:RemoteTableStateWatcher.StateToken
Check if thisRemoteTableStateWatcher.StateToken
represents the same target connection. This is useful, for example, if a PQ Spare replaces a worker.- Specified by:
isSameTarget
in interfaceRemoteTableStateWatcher.StateToken
- Parameters:
other
- theRemoteTableStateWatcher.StateToken
to compare with- Returns:
- true if the other token represents the same target
-
getQueryInfo
-