Package org.apache.curator.x.async.api
Enum RemoveWatcherOption
- java.lang.Object
-
- java.lang.Enum<RemoveWatcherOption>
-
- org.apache.curator.x.async.api.RemoveWatcherOption
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RemoveWatcherOption>
public enum RemoveWatcherOption extends java.lang.Enum<RemoveWatcherOption>
Options to use when removing watchers
-
-
Enum Constant Summary
Enum Constants Enum Constant Description guaranteedSolves edge cases where an operation may succeed on the server but connection failure occurs before a response can be successfully returned to the client.localSpecify if the client should just remove client side watches if a connection to ZK is not available.quietlyPrevents the reporting ofKeeperException.NoNodeExceptions.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RemoveWatcherOptionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RemoveWatcherOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
guaranteed
public static final RemoveWatcherOption guaranteed
Solves edge cases where an operation may succeed on the server but connection failure occurs before a response can be successfully returned to the client.- See Also:
GuaranteeableDeletable
-
local
public static final RemoveWatcherOption local
Specify if the client should just remove client side watches if a connection to ZK is not available. Note that the standard Curator retry loop will not be used in t
-
quietly
public static final RemoveWatcherOption quietly
Prevents the reporting ofKeeperException.NoNodeExceptions. If the watcher doesn't exist the remove method will appear to succeed.
-
-
Method Detail
-
values
public static RemoveWatcherOption[] 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 (RemoveWatcherOption c : RemoveWatcherOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RemoveWatcherOption valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-