Enum ConnectionPoolConnection.ActivityTimeoutPolicy

java.lang.Object
java.lang.Enum<ConnectionPoolConnection.ActivityTimeoutPolicy>
org.attribyte.sql.pool.ConnectionPoolConnection.ActivityTimeoutPolicy
All Implemented Interfaces:
Serializable, Comparable<ConnectionPoolConnection.ActivityTimeoutPolicy>, java.lang.constant.Constable
Enclosing class:
ConnectionPoolConnection

public static enum ConnectionPoolConnection.ActivityTimeoutPolicy extends Enum<ConnectionPoolConnection.ActivityTimeoutPolicy>
How are connections that have exceeded the activity timeout handled?
  • Enum Constant Details

    • FORCE_CLOSE

      public static final ConnectionPoolConnection.ActivityTimeoutPolicy FORCE_CLOSE
      Causes the connection to be closed, even though operations may be pending in another thread. In general, this is probably not thread-safe and deadlock is possible if connection operations are pending in the application thread.
    • LOG

      Timeout is logged, but the connection remains active and unavailable until it is returned to the pool.
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null