com.amazonaws.services.simpleworkflow.flow.interceptors
Class AsyncCancelAndRetryExecutor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
command
protected AsyncRunnable command
AsyncCancelAndRetryExecutor
public AsyncCancelAndRetryExecutor()
execute
public void execute(AsyncRunnable cmd)
- Specified by:
execute
in interface AsyncExecutor
cancelCurrentAndReexecute
public void cancelCurrentAndReexecute()
Copyright © 2016. All rights reserved.