Did this page help you?

   Yes   No   Tell us about it...

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

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.flow.interceptors.ScheduleDecorator
All Implemented Interfaces:
Decorator
Direct Known Subclasses:
CronDecorator

public class ScheduleDecorator
extends 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.


Constructor Summary
ScheduleDecorator(InvocationSchedule schedule)
           
ScheduleDecorator(InvocationSchedule schedule, WorkflowClock clock)
           
 
Method Summary
<V> V
decorate(Class<?>[] interfaces, V object)
           
<V> V
decorate(Class<V> interfaces, V object)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleDecorator

public ScheduleDecorator(InvocationSchedule schedule,
                         WorkflowClock clock)

ScheduleDecorator

public ScheduleDecorator(InvocationSchedule schedule)
Method Detail

decorate

public final <V> V decorate(Class<V> interfaces,
                            V object)
Specified by:
decorate in interface Decorator

decorate

public final <V> V decorate(Class<?>[] interfaces,
                            V object)
Specified by:
decorate in interface Decorator


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.