org.apache.jackrabbit.core.util.db
Class ConnectionHelper.RetryManager<T>

java.lang.Object
  extended by 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.


Constructor Summary
ConnectionHelper.RetryManager()
           
 
Method Summary
protected abstract  T call()
           
 T doTry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHelper.RetryManager

public ConnectionHelper.RetryManager()
Method Detail

doTry

public final T doTry()
              throws SQLException
Throws:
SQLException

call

protected abstract T call()
                   throws SQLException
Throws:
SQLException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.