Package ubic.gemma.core.util
Class SimpleRetry<E extends Exception>
- java.lang.Object
-
- ubic.gemma.core.util.SimpleRetry<E>
-
-
Constructor Summary
Constructors Constructor Description SimpleRetry(int maxRetries, int retryDelayMillis, double exponentialBackoffFactor, Class<E> exceptionClass, String logCategory)Create a new simply retry strategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Texecute(SimpleRetryCallable<T,E> callable, Object what)Execute the given callable with a retry strategy.
-
-
-
Constructor Detail
-
SimpleRetry
public SimpleRetry(int maxRetries, int retryDelayMillis, double exponentialBackoffFactor, Class<E> exceptionClass, String logCategory)Create a new simply retry strategy.- Parameters:
maxRetries- maximum number of retriesretryDelayMillis- delay to wait after a failed attemptexponentialBackoffFactor- factor by which the retry delay is increased after each failed attemptexceptionClass- the type of exception on which retry happenslogCategory- log category to use for retry-related messages
-
-