Enum DataSourceStatus

    • Enum Constant Detail

      • NEW

        public static final DataSourceStatus NEW
        A data source that was just created but never looked up but the lookup operation.
      • REFERENCED

        public static final DataSourceStatus REFERENCED
        A data source that was looked up by at least one client.
      • STALE

        public static final DataSourceStatus STALE
        A data source in stale mode may continue serving connections but it's not safe to do it. Components that uses a data source may register themselves as listeners to be notified about data source status changes, and in this way know when a data source enters in STALE mode. If this is the case, it's recommended to do a new lookup of the data source to get a safe reference.
    • Method Detail

      • values

        public static DataSourceStatus[] 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 (DataSourceStatus c : DataSourceStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DataSourceStatus valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null