Did this page help you?

   Yes   No   Tell us about it...

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(Date currentTime, Date startTime, Date lastInvocationTime, int pastInvocatonsCount)
          Return interval until the next invocation.
 

Method Detail

nextInvocationDelaySeconds

long nextInvocationDelaySeconds(Date currentTime,
                                Date startTime,
                                Date lastInvocationTime,
                                int pastInvocatonsCount)
Return interval until the next invocation.

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.