Class ResponderTask.Sequence<T extends ResponderTask.SuccessResult>

  • All Implemented Interfaces:
    java.util.concurrent.Callable<T>
    Enclosing class:
    ResponderTask

    public static class ResponderTask.Sequence<T extends ResponderTask.SuccessResult>
    extends java.lang.Object
    implements java.util.concurrent.Callable<T>
    Creates a callable by executing the first step, and only if successful executing the next step.
    • Constructor Summary

      Constructors 
      Constructor Description
      Sequence​(java.util.concurrent.Callable<T> step1, java.util.concurrent.Callable<T> step2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T call()  
      • Methods inherited from class java.lang.Object

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

      • Sequence

        public Sequence​(java.util.concurrent.Callable<T> step1,
                        java.util.concurrent.Callable<T> step2)
    • Method Detail

      • call

        public T call()
               throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable<T extends ResponderTask.SuccessResult>
        Throws:
        java.lang.Exception