org.jboss.jca.common.api.metadata.common
Enum FlushStrategy

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

public enum FlushStrategy
extends Enum<FlushStrategy>

Flush strategy for the pools

Author:
Jesper Pedersen

Enum Constant Summary
ENTIRE_POOL
          Entire pool
FAILING_CONNECTION_ONLY
          Failing connection only (default)
IDLE_CONNECTIONS
          Idle connections
UNKNOWN
          Unknown
 
Method Summary
static FlushStrategy forName(String name)
          Static method to get enum instance given localName XsdString
 String getName()
          Get the name of this element.
static FlushStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FlushStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final FlushStrategy UNKNOWN
Unknown


FAILING_CONNECTION_ONLY

public static final FlushStrategy FAILING_CONNECTION_ONLY
Failing connection only (default)


IDLE_CONNECTIONS

public static final FlushStrategy IDLE_CONNECTIONS
Idle connections


ENTIRE_POOL

public static final FlushStrategy ENTIRE_POOL
Entire pool

Method Detail

values

public static FlushStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FlushStrategy c : FlushStrategy.values())
    System.out.println(c);

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

valueOf

public static FlushStrategy valueOf(String name)
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

getName

public String getName()
Get the name of this element.

Returns:
The value

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


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)