Interface WorkerHandle

All Known Implementing Classes:
CommunityPersistentQueryHandle.CommunityWorkerHandle, EnterpriseWorkerHandle

public interface WorkerHandle
A WorkerHandle represents an active worker within a PersistentQueryHandle.
  • Method Details

    • getConnectionDetails

      QueryProcessorConnectionDetails getConnectionDetails()
      Get the current details for the worker connection.
      Returns:
      the connection details
    • initializeQuery

      Future<PersistentQueryState> initializeQuery() throws IOException
      Initialize the query after connection has been established. Implementations must not block, and should return a Future from which the resulting state can be retrieved.
      Returns:
      the state after initialization
      Throws:
      IOException - if a communication error occurred
    • release

      void release() throws IOException
      Close and release any connections to the worker.
      Throws:
      IOException - if an error occurred