com.amazonaws.services.simpleworkflow.flow.interceptors
Class AsyncCancelAndRetryExecutor

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.flow.interceptors.AsyncCancelAndRetryExecutor
All Implemented Interfaces:
AsyncExecutor

public class AsyncCancelAndRetryExecutor
extends Object
implements AsyncExecutor

Cancels and reexecutes a command when cancelCurrentAndReexecute() is called. In case of command failures or successful completions it is not reexecuted.

Author:
fateev

Field Summary
protected  AsyncRunnable command
           
 
Constructor Summary
AsyncCancelAndRetryExecutor()
           
 
Method Summary
 void cancelCurrentAndReexecute()
           
 void execute(AsyncRunnable cmd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

protected AsyncRunnable command
Constructor Detail

AsyncCancelAndRetryExecutor

public AsyncCancelAndRetryExecutor()
Method Detail

execute

public void execute(AsyncRunnable cmd)
Specified by:
execute in interface AsyncExecutor

cancelCurrentAndReexecute

public void cancelCurrentAndReexecute()


Copyright © 2016. All rights reserved.