Package oracle.ucp
Enum Class UniversalConnectionPoolLifeCycleState
java.lang.Object
java.lang.Enum<UniversalConnectionPoolLifeCycleState>
oracle.ucp.UniversalConnectionPoolLifeCycleState
- All Implemented Interfaces:
Serializable,Comparable<UniversalConnectionPoolLifeCycleState>,Constable
public enum UniversalConnectionPoolLifeCycleState
extends 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanin(UniversalConnectionPoolLifeCycleState... states) Cecks if this enum is one of given enumstoString()Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIFE_CYCLE_STARTING
-
LIFE_CYCLE_RUNNING
-
LIFE_CYCLE_STOPPING
-
LIFE_CYCLE_STOPPED
-
LIFE_CYCLE_FAILED
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<UniversalConnectionPoolLifeCycleState>
-
in
Cecks if this enum is one of given enums- Parameters:
states- given enums- Returns:
- true, if one of, false otherwise.
-