Package oracle.ucp
Class UniversalConnectionPoolLifeCycleState
- java.lang.Object
-
- oracle.ucp.UniversalConnectionPoolLifeCycleState
-
public class UniversalConnectionPoolLifeCycleState extends java.lang.ObjectType-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
-
-
Field Summary
Fields Modifier and Type Field Description static UniversalConnectionPoolLifeCycleStateLIFE_CYCLE_FAILEDConnection pool has failed.static java.lang.StringLIFE_CYCLE_FAILED_DESCstatic UniversalConnectionPoolLifeCycleStateLIFE_CYCLE_RUNNINGConnection pool is started and can hand out connections.static java.lang.StringLIFE_CYCLE_RUNNING_DESCstatic UniversalConnectionPoolLifeCycleStateLIFE_CYCLE_STARTINGConnection pool is starting up.static java.lang.StringLIFE_CYCLE_STARTING_DESCstatic UniversalConnectionPoolLifeCycleStateLIFE_CYCLE_STOPPEDConnection pool is stopped.static java.lang.StringLIFE_CYCLE_STOPPED_DESCstatic UniversalConnectionPoolLifeCycleStateLIFE_CYCLE_STOPPINGConnection pool is stopping.static java.lang.StringLIFE_CYCLE_STOPPING_DESC
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object lifeCycleState)Determines equality.protected intgetState()Returns the pool life cycle state.inthashCode()java.lang.StringtoString()Returns the pool lifecycle description.
-
-
-
Field Detail
-
LIFE_CYCLE_STARTING_DESC
public static final java.lang.String LIFE_CYCLE_STARTING_DESC
- See Also:
- Constant Field Values
-
LIFE_CYCLE_RUNNING_DESC
public static final java.lang.String LIFE_CYCLE_RUNNING_DESC
- See Also:
- Constant Field Values
-
LIFE_CYCLE_STOPPING_DESC
public static final java.lang.String LIFE_CYCLE_STOPPING_DESC
- See Also:
- Constant Field Values
-
LIFE_CYCLE_STOPPED_DESC
public static final java.lang.String LIFE_CYCLE_STOPPED_DESC
- See Also:
- Constant Field Values
-
LIFE_CYCLE_FAILED_DESC
public static final java.lang.String LIFE_CYCLE_FAILED_DESC
- See Also:
- Constant Field Values
-
LIFE_CYCLE_STARTING
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_STARTING
Connection pool is starting up.
-
LIFE_CYCLE_RUNNING
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_RUNNING
Connection pool is started and can hand out connections.
-
LIFE_CYCLE_STOPPING
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_STOPPING
Connection pool is stopping.
-
LIFE_CYCLE_STOPPED
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_STOPPED
Connection pool is stopped.
-
LIFE_CYCLE_FAILED
public static final UniversalConnectionPoolLifeCycleState LIFE_CYCLE_FAILED
Connection pool has failed.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object lifeCycleState)
Determines equality.- Overrides:
equalsin classjava.lang.Object- Parameters:
lifeCycleState- The object to compare.- Returns:
- true if this object is equal to the object passed in; otherwise, false.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the pool lifecycle description.- Overrides:
toStringin classjava.lang.Object- Returns:
- the pool lifecycle description.
-
getState
protected int getState()
Returns the pool life cycle state.- Returns:
- the pool life cycle state.
-
-