public class RetryOnException extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RETRIES |
static int |
MAX_DELAY_FACTOR |
static long |
TIME_IN_MILLI |
Constructor and Description |
---|
RetryOnException(int numberOfRetries) |
Modifier and Type | Method and Description |
---|---|
boolean |
decrementAndRetry() |
void |
errorOccured() |
void |
errorOccured(int decrementTries) |
int |
getNumberOfTriesLeft() |
long |
getTimeToWait() |
boolean |
shouldRetry() |
public static final int DEFAULT_RETRIES
public static final long TIME_IN_MILLI
public static final int MAX_DELAY_FACTOR
public int getNumberOfTriesLeft()
public boolean shouldRetry()
public boolean decrementAndRetry()
public void errorOccured()
public void errorOccured(int decrementTries)
public long getTimeToWait()
Copyright © 2019 OpenDaylight. All rights reserved.