Package com.tangosol.net.topic
Enum 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>
public static enum Publisher.OnFailure extends Enum<Publisher.OnFailure> implements Publisher.Option<Object>
This option controls how aPublisher
handles a failure of an individualPublisher.publish(V)
call.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Continue
If an individualPublisher.publish(Object)
fails then skip that value and continue to publish other values.Stop
If an individualPublisher.publish(V)
fails then stop any further publishing and close thePublisher
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Publisher.OnFailure
valueOf(String name)
Returns the enum constant of this type with the specified name.static Publisher.OnFailure[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Stop
@Default public static final Publisher.OnFailure 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
public static final Publisher.OnFailure 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 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 nameNullPointerException
- if the argument is null
-
-