Class ServerSearch
java.lang.Object
com.tick42.glue.core.interop.discovery.ServerSearch
- All Implemented Interfaces:
AsynchronousCloseable,Search<Instance>,AutoCloseable
public final class ServerSearch extends Object implements Search<Instance>
-
Method Summary
Modifier and Type Method Description CompletionStage<Collection<Instance>>all()Retrieves all elements matching the search criteria.CompletionStage<Instance>any()Retrieves any one of the elements from a set matching the search criteria.CompletionStage<Void>closeAsync()Initiates a shutdown.CompletionStage<Void>onClose()Return a stage that will complete whenAsynchronousCloseable.closeAsync()is called and shutdown completes.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tick42.glue.core.AsynchronousCloseable
close
-
Method Details
-
onClose
Description copied from interface:AsynchronousCloseableReturn a stage that will complete whenAsynchronousCloseable.closeAsync()is called and shutdown completes.- Specified by:
onClosein interfaceAsynchronousCloseable- Returns:
- a stage that will complete when shutdown is complete, never
null
-
closeAsync
Description copied from interface:AsynchronousCloseableInitiates a shutdown.- Specified by:
closeAsyncin interfaceAsynchronousCloseable- Returns:
- a stage that will complete when shutdown is complete, never
null
-
all
Description copied from interface:SearchRetrieves all elements matching the search criteria. -
any
Description copied from interface:SearchRetrieves any one of the elements from a set matching the search criteria.
-