com.amazonaws.services.simpleworkflow.flow.spring
Class CronInvocationSchedule
java.lang.Object
com.amazonaws.services.simpleworkflow.flow.spring.CronInvocationSchedule
- All Implemented Interfaces:
- InvocationSchedule
public class CronInvocationSchedule
- extends java.lang.Object
- implements InvocationSchedule
Constructor Summary |
CronInvocationSchedule(java.lang.String cronExpression,
java.util.Date expiration,
java.util.TimeZone timeZone)
|
Method Summary |
long |
nextInvocationDelaySeconds(java.util.Date currentTime,
java.util.Date startTime,
java.util.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 |
CronInvocationSchedule
public CronInvocationSchedule(java.lang.String cronExpression,
java.util.Date expiration,
java.util.TimeZone timeZone)
nextInvocationDelaySeconds
public long nextInvocationDelaySeconds(java.util.Date currentTime,
java.util.Date startTime,
java.util.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 timestartTime
- - time when workflow startedlastInvocationTime
- - time when last invocation happenedpastInvocatonsCount
- - 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.