Interface HandlerContext.UnresolvedFuture

All Known Subinterfaces:
HandlerContext.UnresolvedFuture.AllOf, HandlerContext.UnresolvedFuture.AnyOf, HandlerContext.UnresolvedFuture.Combinator, HandlerContext.UnresolvedFuture.Mapped, HandlerContext.UnresolvedFuture.Single
Enclosing interface:
HandlerContext

Node of a future tree, awaited with HandlerContext.await(UnresolvedFuture). A node is either a HandlerContext.UnresolvedFuture.Single node, a HandlerContext.UnresolvedFuture.Mapped node, or a HandlerContext.UnresolvedFuture.Combinator node (HandlerContext.UnresolvedFuture.AnyOf or HandlerContext.UnresolvedFuture.AllOf).

The HandlerContext implementation reads the tree from another thread while HandlerContext.await(UnresolvedFuture) is in progress: the tree structure must not change, and isDone() must be safe to read from other threads.

  • Method Details

    • isDone

      boolean isDone()
      Returns:
      true if this node is completed. Completed nodes, and their children, are not awaited anymore.