Package oracle.ucp

Class UniversalConnectionPoolLifeCycleState


  • public class UniversalConnectionPoolLifeCycleState
    extends java.lang.Object
    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
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object lifeCycleState)
        Determines equality.
        Overrides:
        equals in class java.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:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Returns the pool lifecycle description.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the pool lifecycle description.
      • getState

        protected int getState()
        Returns the pool life cycle state.
        Returns:
        the pool life cycle state.