Package io.deephaven.enterprise.remote
Interface RemoteTableStateWatcher.StateToken
- All Known Implementing Classes:
ControllerStateWatcher.PersistentQueryStateToken
- Enclosing interface:
- RemoteTableStateWatcher
public static interface RemoteTableStateWatcher.StateToken
A Token representing the state of the remote table object. It must be able to tell clients if the upstream is
ready for subscriptions or not.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisReady()Is the upstream ready for subscriptions?booleanisSameTarget(@Nullable RemoteTableStateWatcher.StateToken other) Check if thisRemoteTableStateWatcher.StateTokenrepresents the same target connection.
-
Method Details
-
isReady
boolean isReady()Is the upstream ready for subscriptions?- Returns:
- true if it is ready for subscriptions.
-
isSameTarget
Check if thisRemoteTableStateWatcher.StateTokenrepresents the same target connection. This is useful, for example, if a PQ Spare replaces a worker.- Parameters:
other- theRemoteTableStateWatcher.StateTokento compare with- Returns:
- true if the other token represents the same target
-