Package oracle.ucp

Enum 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
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • 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.