Package com.tangosol.net.topic
Enum Class Publisher.OnFailure
- All Implemented Interfaces:
Publisher.Option<Object>
,Serializable
,Comparable<Publisher.OnFailure>
,Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf an individualPublisher.publish(Object)
fails then skip that value and continue to publish other values.If an individualPublisher.publish(V)
fails then stop any further publishing and close thePublisher
. -
Method Summary
Modifier and TypeMethodDescriptionstatic Publisher.OnFailure
Returns the enum constant of this class with the specified name.static Publisher.OnFailure[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Stop
If an individualPublisher.publish(V)
fails then stop any further publishing and close thePublisher
.This option will maintain order as when a failure occurs no other values will be sent to the
NamedTopic
. -
Continue
If an individualPublisher.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
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
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 nameNullPointerException
- if the argument is null
-