com.amazonaws.services.simpleworkflow.flow.spring
Class CronInvocationSchedule

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

public class CronInvocationSchedule
extends Object
implements InvocationSchedule


Field Summary
protected static int SECOND
           
 
Constructor Summary
CronInvocationSchedule(String cronExpression, Date expiration, TimeZone timeZone)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECOND

protected static final int SECOND
See Also:
Constant Field Values
Constructor Detail

CronInvocationSchedule

public CronInvocationSchedule(String cronExpression,
                              Date expiration,
                              TimeZone timeZone)
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 © 2016. All rights reserved.