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
nextInvocationDelaySeconds
long nextInvocationDelaySeconds(Date currentTime,
Date startTime,
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.