public class DoublingRetrySchedule extends Object implements RetrySchedule
DoublingRetrySchedule
Constructor and Description |
---|
DoublingRetrySchedule(long startInterval,
long maxInterval)
Creates a new instance of DoublingRetrySchedule.
|
DoublingRetrySchedule(long startInterval,
long maxInterval,
int multiplier)
Creates a new instance of DoublingRetrySchedule.
|
Modifier and Type | Method and Description |
---|---|
long |
getInterval(int index)
Returns the interval time in milliseconds at the specified zero based index.
|
String |
toString() |
public DoublingRetrySchedule(long startInterval, long maxInterval)
startInterval
- The interval for an index of 0maxInterval
- The maximum interval for any indexpublic DoublingRetrySchedule(long startInterval, long maxInterval, int multiplier)
startInterval
- The interval for an index of 0maxInterval
- The maximum interval for any indexmultiplier
- The multiplier to apply to the resultpublic long getInterval(int index)
RetrySchedule
getInterval
in interface RetrySchedule
org.apache.james.user.ldap.api.RetrySchedule#getInterval(int)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.