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

    • getWrapped

      public Promise<W> getWrapped()
    • succeeded

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

      Callback method to invoke when the operation succeeds.

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

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

      Callback method to invoke when the operation fails.

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