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 Summary

      Constructors 
      Constructor Description
      Adapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void failed​(java.lang.Throwable x)
      Callback invoked when the operation fails.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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