com.amazonaws.services.simpleworkflow.flow.interceptors
Interface InvocationSchedule
- All Known Implementing Classes:
- CronInvocationSchedule, FixedIntervalInvocationSchedule
public interface InvocationSchedule
Encapsulates an invocation schedule.
- See Also:
AsyncScheduledExecutor
,
ScheduleDecorator
Method Summary |
long |
nextInvocationDelaySeconds(java.util.Date currentTime,
java.util.Date startTime,
java.util.Date lastInvocationTime,
int pastInvocatonsCount)
Return interval until the next invocation. |
nextInvocationDelaySeconds
long nextInvocationDelaySeconds(java.util.Date currentTime,
java.util.Date startTime,
java.util.Date lastInvocationTime,
int pastInvocatonsCount)
- Return interval until the next invocation.
- 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.