Did this page help you?

   Yes   No   Tell us about it...

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

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

public class FixedIntervalInvocationSchedule
extends Object
implements InvocationSchedule

Schedule that represents invocations with a fixed delay up to a specified expiration interval or count.


Constructor Summary
FixedIntervalInvocationSchedule(int intervalSeconds, int expirationSeconds)
           
FixedIntervalInvocationSchedule(int intervalSeconds, int expirationSeconds, int maxInvocationCount)
           
 
Method Summary
 long nextInvocationDelaySeconds(Date currentTime, Date startTime, Date lastInvocationTime, int pastInvocatonsCount)
          Return interval until the next invocation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedIntervalInvocationSchedule

public FixedIntervalInvocationSchedule(int intervalSeconds,
                                       int expirationSeconds,
                                       int maxInvocationCount)

FixedIntervalInvocationSchedule

public FixedIntervalInvocationSchedule(int intervalSeconds,
                                       int expirationSeconds)
Method Detail

nextInvocationDelaySeconds

public long nextInvocationDelaySeconds(Date currentTime,
                                       Date startTime,
                                       Date lastInvocationTime,
                                       int pastInvocatonsCount)
Description copied from interface: InvocationSchedule
Return interval until the next invocation.

Specified by:
nextInvocationDelaySeconds in interface InvocationSchedule
Parameters:
currentTime - - current workflow time
startTime - - time when workflow started
lastInvocationTime - - time when last invocation happened
pastInvocatonsCount - - how many invocations were done
Returns:
time in seconds until the next invocation. FlowConstants.NONE if no more invocations should be scheduled.


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