Interface WorkerHandle
- All Known Implementing Classes:
CommunityPersistentQueryHandle.CommunityWorkerHandle
,EnterpriseWorkerHandle
public interface WorkerHandle
A WorkerHandle represents an active worker within a
PersistentQueryHandle
.-
Method Summary
Modifier and TypeMethodDescriptionGet the current details for the worker connection.Initialize the query after connection has been established.void
release()
Close and release any connections to the worker.
-
Method Details
-
getConnectionDetails
QueryProcessorConnectionDetails getConnectionDetails()Get the current details for the worker connection.- Returns:
- the connection details
-
initializeQuery
Initialize the query after connection has been established. Implementations must not block, and should return aFuture
from which the resulting state can be retrieved.- Returns:
- the state after initialization
- Throws:
IOException
- if a communication error occurred
-
release
Close and release any connections to the worker.- Throws:
IOException
- if an error occurred
-