Class RetryOnException
- java.lang.Object
-
- org.opendaylight.netvirt.bgpmanager.RetryOnException
-
public class RetryOnException extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_RETRIESstatic intMAX_DELAY_FACTORstatic longTIME_IN_MILLI
-
Constructor Summary
Constructors Constructor Description RetryOnException(int numberOfRetries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandecrementAndRetry()voiderrorOccured()voiderrorOccured(int decrementTries)intgetNumberOfTriesLeft()longgetTimeToWait()booleanshouldRetry()
-
-
-
Field Detail
-
DEFAULT_RETRIES
public static final int DEFAULT_RETRIES
- See Also:
- Constant Field Values
-
TIME_IN_MILLI
public static final long TIME_IN_MILLI
- See Also:
- Constant Field Values
-
MAX_DELAY_FACTOR
public static final int MAX_DELAY_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNumberOfTriesLeft
public int getNumberOfTriesLeft()
-
shouldRetry
public boolean shouldRetry()
-
decrementAndRetry
public boolean decrementAndRetry()
-
errorOccured
public void errorOccured()
-
errorOccured
public void errorOccured(int decrementTries)
-
getTimeToWait
public long getTimeToWait()
-
-