Class Promise.Adapter<U>

java.lang.Object
org.eclipse.jetty.util.Promise.Adapter<U>
Type Parameters:
U - the type of the result
All Implemented Interfaces:
Promise<U>
Enclosing interface:
Promise<C>

public static class Promise.Adapter<U> extends Object implements Promise<U>

Empty implementation of Promise.

  • Constructor Details

    • Adapter

      public Adapter()
  • Method Details

    • failed

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

      Callback invoked when the operation fails.

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