Class 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 java.lang.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​(java.lang.Object[] params)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T doTry()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetryManager

        public RetryManager​(java.lang.Object[] params)
    • Method Detail

      • doTry

        public final T doTry()
                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException