Package org.apache.curator.x.async.api
Enum DeleteOption
- java.lang.Object
-
- java.lang.Enum<DeleteOption>
-
- org.apache.curator.x.async.api.DeleteOption
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DeleteOption>
public enum DeleteOption extends java.lang.Enum<DeleteOption>
Options to use when deleting ZNodes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description deletingChildrenIfNeededWill also delete children if they existguaranteedSolves edge cases where an operation may succeed on the server but connection failure occurs before a response can be successfully returned to the client.quietlyPrevents the reporting ofKeeperException.NoNodeExceptions.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeleteOptionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DeleteOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
quietly
public static final DeleteOption quietly
Prevents the reporting ofKeeperException.NoNodeExceptions. If the ZNode doesn't exist the delete method will appear to succeed.
-
deletingChildrenIfNeeded
public static final DeleteOption deletingChildrenIfNeeded
Will also delete children if they exist
-
guaranteed
public static final DeleteOption 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
-
-
Method Detail
-
values
public static DeleteOption[] 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 (DeleteOption c : DeleteOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeleteOption 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
-
-