Class RetryCaller<T,E extends java.lang.Throwable>
- java.lang.Object
-
- ch.systemsx.cisd.common.api.retry.RetryCaller<T,E>
-
public abstract class RetryCaller<T,E extends java.lang.Throwable> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RetryCaller()
RetryCaller(RetryConfiguration configuration)
RetryCaller(RetryConfiguration configuration, ch.systemsx.cisd.common.logging.ISimpleLogger logger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
call()
T
callWithRetry()
protected boolean
isRetryableException(java.lang.RuntimeException e)
-
-
-
Constructor Detail
-
RetryCaller
public RetryCaller()
-
RetryCaller
public RetryCaller(RetryConfiguration configuration)
-
RetryCaller
public RetryCaller(RetryConfiguration configuration, ch.systemsx.cisd.common.logging.ISimpleLogger logger)
-
-
Method Detail
-
call
protected abstract T call() throws E extends java.lang.Throwable
- Throws:
E extends java.lang.Throwable
-
callWithRetry
public T callWithRetry() throws E extends java.lang.Throwable
- Throws:
E extends java.lang.Throwable
-
isRetryableException
protected boolean isRetryableException(java.lang.RuntimeException e)
-
-