Class Promise.Wrapper<W>

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

@Deprecated(since="2021-05-27") public static class Promise.Wrapper<W> extends Object implements Promise<W>
Deprecated.
  • Constructor Details

    • Wrapper

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

    • succeeded

      public void succeeded(W result)
      Deprecated.
      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)
      Deprecated.
      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()
      Deprecated.
    • unwrap

      public Promise<W> unwrap()
      Deprecated.