Enum FlushStrategy

    • Enum Constant Detail

      • FAILING_CONNECTION_ONLY

        public static final FlushStrategy FAILING_CONNECTION_ONLY
        Failing connection only (default)
      • INVALID_IDLE_CONNECTIONS

        public static final FlushStrategy INVALID_IDLE_CONNECTIONS
        Invalid idle connections
      • IDLE_CONNECTIONS

        public static final FlushStrategy IDLE_CONNECTIONS
        Idle connections
      • GRACEFULLY

        public static final FlushStrategy GRACEFULLY
        Gracefully
      • ENTIRE_POOL

        public static final FlushStrategy ENTIRE_POOL
        Entire pool
      • ALL_INVALID_IDLE_CONNECTIONS

        public static final FlushStrategy ALL_INVALID_IDLE_CONNECTIONS
        All invalid idle connections
      • ALL_IDLE_CONNECTIONS

        public static final FlushStrategy ALL_IDLE_CONNECTIONS
        All idle connections
      • ALL_GRACEFULLY

        public static final FlushStrategy ALL_GRACEFULLY
        All gracefully
      • ALL_CONNECTIONS

        public static final FlushStrategy ALL_CONNECTIONS
        All connections
    • Method Detail

      • values

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

        public static FlushStrategy 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
      • getName

        public String getName()
        Get the name of this element.
        Returns:
        The value
      • forName

        public static FlushStrategy forName​(String name)
        Static method to get enum instance given localName XsdString
        Parameters:
        name - The strategy name
        Returns:
        The enum instance