Enum Class Publisher.OnFailure

java.lang.Object
java.lang.Enum<Publisher.OnFailure>
com.tangosol.net.topic.Publisher.OnFailure
All Implemented Interfaces:
Publisher.Option<Object>, Serializable, Comparable<Publisher.OnFailure>, Constable
Enclosing interface:
Publisher<V>

public static enum Publisher.OnFailure extends Enum<Publisher.OnFailure> implements Publisher.Option<Object>
This option controls how a Publisher handles a failure of an individual Publisher.publish(V) call.
  • Enum Constant Details

    • Stop

      @Default public static final Publisher.OnFailure Stop
      If an individual Publisher.publish(V) fails then stop any further publishing and close the Publisher.

      This option will maintain order as when a failure occurs no other values will be sent to the NamedTopic.

    • 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 Details

    • values

      public static Publisher.OnFailure[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Publisher.OnFailure valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null