Class 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 java.lang.Object
    implements Promise<U>

    Empty implementation of Promise.

    • Constructor Detail

      • Adapter

        public Adapter()
    • Method Detail

      • failed

        public void failed​(java.lang.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