Class ConnectionHelper.RetryManager<T>
- java.lang.Object
-
- org.apache.jackrabbit.core.util.db.ConnectionHelper.RetryManager<T>
-
- Type Parameters:
T- the return type of the method which is retried if it failed
- Enclosing class:
- ConnectionHelper
public abstract class ConnectionHelper.RetryManager<T> extends Object
This class encapsulates the logic to retry a method invocation if it threw an SQLException. The RetryManager must cleanup the Params it will get.
-
-
Constructor Summary
Constructors Constructor Description RetryManager(Object[] params)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Tcall()protected voidcleanupParamResources()Cleans up the Parameter resources that are not automatically closed or deleted.TdoTry()protected booleanresetParamResources()
-
-
-
Constructor Detail
-
RetryManager
public RetryManager(Object[] params)
-
-
Method Detail
-
doTry
public final T doTry() throws SQLException
- Throws:
SQLException
-
call
protected abstract T call() throws SQLException
- Throws:
SQLException
-
cleanupParamResources
protected void cleanupParamResources()
Cleans up the Parameter resources that are not automatically closed or deleted.
-
resetParamResources
protected boolean resetParamResources()
-
-