com.dtolabs.rundeck.core.execution.utils
Class ResponderTask.Sequence<T extends ResponderTask.SuccessResult>

java.lang.Object
  extended by com.dtolabs.rundeck.core.execution.utils.ResponderTask.Sequence<T>
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
ResponderTask.Sequence(java.util.concurrent.Callable<T> step1, java.util.concurrent.Callable<T> step2)
           
 
Method Summary
 T call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponderTask.Sequence

public ResponderTask.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