Enum Publisher.OnFailure

    • Enum Constant Detail

      • Continue

        public static final Publisher.OnFailure Continue
        If an individual Publisher.publish(Object) fails then skip that value and continue to publish other values.

        This option will not guarantee to maintain order as when a failure occurs other further values will be still sent to the NamedTopic.

    • Method Detail

      • values

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

        public static Publisher.OnFailure 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