public class FixedIntervalInvocationSchedule extends Object implements InvocationSchedule
Constructor and Description |
---|
FixedIntervalInvocationSchedule(int intervalSeconds,
int expirationSeconds) |
FixedIntervalInvocationSchedule(int intervalSeconds,
int expirationSeconds,
int maxInvocationCount) |
Modifier and Type | Method and Description |
---|---|
long |
nextInvocationDelaySeconds(Date currentTime,
Date startTime,
Date lastInvocationTime,
int pastInvocatonsCount)
Return interval until the next invocation.
|
public FixedIntervalInvocationSchedule(int intervalSeconds, int expirationSeconds, int maxInvocationCount)
public FixedIntervalInvocationSchedule(int intervalSeconds, int expirationSeconds)
public long nextInvocationDelaySeconds(Date currentTime, Date startTime, Date lastInvocationTime, int pastInvocatonsCount)
InvocationSchedule
nextInvocationDelaySeconds
in interface InvocationSchedule
currentTime
- - current workflow timestartTime
- - time when workflow startedlastInvocationTime
- - time when last invocation happenedpastInvocatonsCount
- - how many invocations were doneFlowConstants.NONE
if no more invocations should be
scheduled.