Class Promise.Wrapper<W>

java.lang.Object
org.eclipse.jetty.util.Promise.Wrapper<W>
All Implemented Interfaces:
Promise<W>
Enclosing interface:
Promise<C>

public static class Promise.Wrapper<W> extends Object implements Promise<W>
  • Constructor Details

    • Wrapper

      public Wrapper(Promise<W> promise)
  • Method Details

    • succeeded

      public void succeeded(W result)
      Description copied from interface: Promise

      Callback invoked when the operation completes.

      Specified by:
      succeeded in interface Promise<W>
      Parameters:
      result - the context
      See Also:
    • failed

      public void failed(Throwable x)
      Description copied from interface: Promise

      Callback invoked when the operation fails.

      Specified by:
      failed in interface Promise<W>
      Parameters:
      x - the reason for the operation failure
    • getPromise

      public Promise<W> getPromise()
    • unwrap

      public Promise<W> unwrap()