Interface Continuation

  • All Implemented Interfaces:

    
    public interface Continuation<TResult extends Object, TContinuationResult extends Object>
    
                        

    A Functional interface to be called after a deferred completes.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract TContinuationResult then(Deferred<TResult> deferred) The function to be called when the given deferred is completed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • then

         abstract TContinuationResult then(Deferred<TResult> deferred)

        The function to be called when the given deferred is completed.

        Parameters:
        deferred - the completed deferred.
        Returns:

        a nullable result of this function.