com.amazonaws.services.simpleworkflow.flow.interceptors
Class ScheduleDecorator
java.lang.Object
com.amazonaws.services.simpleworkflow.flow.interceptors.ScheduleDecorator
- All Implemented Interfaces:
- Decorator
- Direct Known Subclasses:
- CronDecorator
public class ScheduleDecorator
- extends java.lang.Object
- implements Decorator
Repeats every call to a wrapped object method according to provided schedule.
If RetryPolicy is provided calls that fail are retried according to
it. Retry count is reset at each scheduled invocation.
|
Method Summary |
|
decorate(java.lang.Class<?>[] interfaces,
V object)
|
|
decorate(java.lang.Class<V> interfaces,
V object)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScheduleDecorator
public ScheduleDecorator(InvocationSchedule schedule,
WorkflowClock clock)
ScheduleDecorator
public ScheduleDecorator(InvocationSchedule schedule)
decorate
public final <V> V decorate(java.lang.Class<V> interfaces,
V object)
- Specified by:
decorate in interface Decorator
decorate
public final <V> V decorate(java.lang.Class<?>[] interfaces,
V object)
- Specified by:
decorate in interface Decorator
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.