Package oracle.ucp
Enum UniversalConnectionPoolLifeCycleState
- java.lang.Object
-
- java.lang.Enum<UniversalConnectionPoolLifeCycleState>
-
- oracle.ucp.UniversalConnectionPoolLifeCycleState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UniversalConnectionPoolLifeCycleState>
public enum UniversalConnectionPoolLifeCycleState extends java.lang.Enum<UniversalConnectionPoolLifeCycleState>
Type-safe Life Cycle values for the connection pool. A connection pool has a lifecycle. The connection pool only hands out connections when it is in a started state. A connection pool has the following lifecycle states:- Starting Indicates that the connection pool's start method has been called and it is in the process of starting up.
- Started Indicates that the connection pool has been started and is ready to hand out connections.
- Stopping Indicates that the connection pool is in the process of stopping.
- Stopped Indicates that the connection pool is stopped.
- Failed Indicates that the connection pool has encountered failures during starting, stopping, or execution.
- See Also:
UniversalConnectionPool
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LIFE_CYCLE_FAILED
LIFE_CYCLE_RUNNING
LIFE_CYCLE_STARTING
LIFE_CYCLE_STOPPED
LIFE_CYCLE_STOPPING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
in(UniversalConnectionPoolLifeCycleState... states)
Cecks if this enum is one of given enumsjava.lang.String
toString()
static UniversalConnectionPoolLifeCycleState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UniversalConnectionPoolLifeCycleState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LIFE_CYCLE_STARTING
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_STARTING
-
LIFE_CYCLE_RUNNING
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_RUNNING
-
LIFE_CYCLE_STOPPING
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_STOPPING
-
LIFE_CYCLE_STOPPED
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_STOPPED
-
LIFE_CYCLE_FAILED
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_FAILED
-
-
Method Detail
-
values
public static UniversalConnectionPoolLifeCycleState[] 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 (UniversalConnectionPoolLifeCycleState c : UniversalConnectionPoolLifeCycleState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UniversalConnectionPoolLifeCycleState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<UniversalConnectionPoolLifeCycleState>
-
in
public boolean in(UniversalConnectionPoolLifeCycleState... states)
Cecks if this enum is one of given enums- Parameters:
states
- given enums- Returns:
- true, if one of, false otherwise.
-
-