Class PersistentQueryTableHelper.HelperPersistentQueryClient
java.lang.Object
com.illumon.iris.controller.utils.PersistentQueryTableHelper.HelperPersistentQueryClient
- All Implemented Interfaces:
QueryProcessorConnection.DisconnectHandler
- Enclosing class:
- PersistentQueryTableHelper
public static class PersistentQueryTableHelper.HelperPersistentQueryClient
extends Object
implements QueryProcessorConnection.DisconnectHandler
A wrapper around a
PersistentQueryClient
that retrieves and subscribes to preemptive tables.
The query writer must prepare the tables used by this class for subscription to by calling
Table.preemptiveUpdatesTable(long)
from within the persistent query script code.-
Method Summary
Modifier and TypeMethodDescriptionGet the underlyingPersistentQueryClient
.getPreemptiveTable
(String tableName) Create a full subscription to the named table, suitable for further use within the local query engine.getUnsubscribedTable
(String tableName) Get a handle to a table from the persistent query.void
-
Method Details
-
getPersistentQueryClient
Get the underlyingPersistentQueryClient
.- Returns:
- the persistent query client
-
getPreemptiveTable
Create a full subscription to the named table, suitable for further use within the local query engine. The remote table must be aPreemptiveUpdatesTable
.- Parameters:
tableName
- the table's name in the binding of the persistent query- Returns:
- a local updating copy of the remote table
-
getUnsubscribedTable
Get a handle to a table from the persistent query.- Parameters:
tableName
- the table's name in the binding of the persistent query- Returns:
- a handle to the remote table
-
onDisconnect
public void onDisconnect()- Specified by:
onDisconnect
in interfaceQueryProcessorConnection.DisconnectHandler
-