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 int
DEFAULT_RETRIES
static int
MAX_DELAY_FACTOR
static long
TIME_IN_MILLI
-
Constructor Summary
Constructors Constructor Description RetryOnException(int numberOfRetries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
decrementAndRetry()
void
errorOccured()
void
errorOccured(int decrementTries)
int
getNumberOfTriesLeft()
long
getTimeToWait()
boolean
shouldRetry()
-
-
-
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()
-
-