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 Type
    Method
    Description
    boolean
    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:
      true if the request completed successfully, false if it failed or was cancelled.
    • compose

      RequestWatcher compose(RequestWatcher... requestWatchers)
      Composes this request with others into a single watcher.
      Parameters:
      requestWatchers - The other watchers to compose with.
      Returns:
      A new RequestWatcher that tracks all provided requests.