Interface RequestWatcher
- All Known Subinterfaces:
Request
- All Known Implementing Classes:
ComposedRequest,SendRequestHandle
public interface RequestWatcher
Provides a mechanism to wait for one or more asynchronous requests to complete.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanblock()Blocks until the request is complete.compose(RequestWatcher... requestWatchers) Composes this request with others into a single watcher.
-
Method Details
-
block
boolean block()Blocks until the request is complete.- Returns:
trueif the request completed successfully,falseif it failed or was cancelled.
-
compose
Composes this request with others into a single watcher.- Parameters:
requestWatchers- The other watchers to compose with.- Returns:
- A new
RequestWatcherthat tracks all provided requests.
-