Enum Class FlushStrategy

java.lang.Object
java.lang.Enum<FlushStrategy>
org.jboss.jca.common.api.metadata.common.FlushStrategy
All Implemented Interfaces:
Serializable, Comparable<FlushStrategy>, java.lang.constant.Constable

public enum FlushStrategy extends Enum<FlushStrategy>
Flush strategy for the pools
Author:
Jesper Pedersen
  • Enum Constant Details

    • UNKNOWN

      public static final FlushStrategy UNKNOWN
      Unknown
    • FAILING_CONNECTION_ONLY

      public static final FlushStrategy FAILING_CONNECTION_ONLY
      Failing connection only (default)
    • INVALID_IDLE_CONNECTIONS

      public static final FlushStrategy INVALID_IDLE_CONNECTIONS
      Invalid idle connections
    • IDLE_CONNECTIONS

      public static final FlushStrategy IDLE_CONNECTIONS
      Idle connections
    • GRACEFULLY

      public static final FlushStrategy GRACEFULLY
      Gracefully
    • ENTIRE_POOL

      public static final FlushStrategy ENTIRE_POOL
      Entire pool
    • ALL_INVALID_IDLE_CONNECTIONS

      public static final FlushStrategy ALL_INVALID_IDLE_CONNECTIONS
      All invalid idle connections
    • ALL_IDLE_CONNECTIONS

      public static final FlushStrategy ALL_IDLE_CONNECTIONS
      All idle connections
    • ALL_GRACEFULLY

      public static final FlushStrategy ALL_GRACEFULLY
      All gracefully
    • ALL_CONNECTIONS

      public static final FlushStrategy ALL_CONNECTIONS
      All connections
  • Method Details

    • values

      public static FlushStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FlushStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Get the name of this element.
      Returns:
      The value
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FlushStrategy>
    • forName

      public static FlushStrategy forName(String name)
      Static method to get enum instance given localName XsdString
      Parameters:
      name - The strategy name
      Returns:
      The enum instance