Package com.tangosol.net.topic
Enum Subscriber.CommitResultStatus
- java.lang.Object
-
- java.lang.Enum<Subscriber.CommitResultStatus>
-
- com.tangosol.net.topic.Subscriber.CommitResultStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<Subscriber.CommitResultStatus>
- Enclosing interface:
- Subscriber<V>
public static enum Subscriber.CommitResultStatus extends Enum<Subscriber.CommitResultStatus>
The different result statuses for a commit request.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AlreadyCommitted
The position was already committed.Committed
The position was successfully committed.NothingToCommit
A commit request was made, but there was no position to be committed.Rejected
The commit request was rejected.Unowned
The position was successfully committed but the committing subscriber does not own the committed channel.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Subscriber.CommitResultStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static Subscriber.CommitResultStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Committed
public static final Subscriber.CommitResultStatus Committed
The position was successfully committed.
-
AlreadyCommitted
public static final Subscriber.CommitResultStatus AlreadyCommitted
The position was already committed. Typically, this is caused by a commit of a higher position in the channel already being processed.
-
Rejected
public static final Subscriber.CommitResultStatus Rejected
The commit request was rejected.
-
Unowned
public static final Subscriber.CommitResultStatus Unowned
The position was successfully committed but the committing subscriber does not own the committed channel.
-
NothingToCommit
public static final Subscriber.CommitResultStatus NothingToCommit
A commit request was made, but there was no position to be committed.
-
-
Method Detail
-
values
public static Subscriber.CommitResultStatus[] 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 (Subscriber.CommitResultStatus c : Subscriber.CommitResultStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Subscriber.CommitResultStatus 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
-
-