public abstract class RetryOnErrorTemplate<T> extends Object
RetryOnErrorTemplate<String> retryOnError = new RetryOnErrorTemplate<String>() {
public String tryThat() throws Exception {
return THE_RETURNED_VALUE;
}
};
retryOnError.times(3)
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
RetryOnErrorTemplate() |
Modifier and Type | Method and Description |
---|---|
int |
getAlreadyTry() |
String |
getLoggingSentence() |
int |
getNumberOfTimesToRetry() |
void |
setLoggingSentence(String loggingSentence) |
T |
times(int numberOfTry) |
abstract T |
tryThat() |
public int getAlreadyTry()
public int getNumberOfTimesToRetry()
public String getLoggingSentence()
public void setLoggingSentence(String loggingSentence)
loggingSentence
- the loggingSentence to setCopyright © 2015. All rights reserved.