|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.trigger.AbstractTimeoutAlgorithm | +--com.compoze.trigger.ConstantTimeoutAlgorithm
This class implements a timeout algorithm that always returns the same
value. The configuration for the timeout when the default constructor is
used is obtained from the TriggerProperties
object.
Constructor Summary | |
ConstantTimeoutAlgorithm()
Constructor. |
|
ConstantTimeoutAlgorithm(long lTimeout,
int iRetries)
Constructor. |
Method Summary | |
long |
getNextTimeout(long lInitialTimeout,
int iRetries,
long lLastTimeout)
Get the next timeout to use. |
Methods inherited from class com.compoze.trigger.AbstractTimeoutAlgorithm |
getNextTimeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstantTimeoutAlgorithm()
public ConstantTimeoutAlgorithm(long lTimeout, int iRetries)
lTimeout
- the timeout to useiRetries
- the maximum number of retriesMethod Detail |
public long getNextTimeout(long lInitialTimeout, int iRetries, long lLastTimeout)
getNextTimeout
in class AbstractTimeoutAlgorithm
lInitialTimeout
- the initial timeout that was used (-1 for no initial)iRetryNumber
- the current retry numberlLastTimeout
- the last timeout that was used
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |