Interface QueryProcessorConnection.QueryHandle

All Known Subinterfaces:
QueryProcessorConnection.QueryFuture<RETURN_TYPE>
Enclosing interface:
QueryProcessorConnection

public static interface QueryProcessorConnection.QueryHandle
Interface returned from asynchronous queries. This handle may be used to wait for the query to complete, or to cancel execution of the query.
  • Method Summary

    Modifier and Type Method Description
    void await()
    block until the query is finished
    void await​(long timeoutMillis)
    await but only as long as the timeout
    boolean cancel()
    Attempt to cancel the query.
    boolean isReady()
    Check if the query has completed and produced a result.