public class FixedIntervalInvocationSchedule extends Object implements InvocationSchedule
| Modifier and Type | Field and Description |
|---|---|
protected static int |
SECOND |
| 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.
|
protected static final int SECOND
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)
InvocationSchedulenextInvocationDelaySeconds in interface InvocationSchedulecurrentTime - - 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.Copyright © 2016. All rights reserved.