Package com.deltaxml.core.config
Enum Class CancellationPolicy
- All Implemented Interfaces:
Serializable,Comparable<CancellationPolicy>,Constable
Determines whether and how the Comparator can be cancelled if it is taking too long.
TimedThe comparison will time out after the supplied interval.InterruptibleThe comparison will be cancelled when theThreadthat is running it is interrupted.CancelThe comparison will be cancelled when the Comparator cancel method is called.NoopThe comparison cannot be cancelled. This is the default.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe comparison will be cancelled when the Comparator cancel method is called.The comparison will be cancelled when theThreadthat is running it is interrupted.The comparison cannot be cancelled.The comparison will time out after the supplied interval. -
Method Summary
Modifier and TypeMethodDescriptionstatic CancellationPolicyReturns the enum constant of this class with the specified name.static CancellationPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Timed
The comparison will time out after the supplied interval. -
Interruptible
The comparison will be cancelled when theThreadthat is running it is interrupted. -
Cancel
The comparison will be cancelled when the Comparator cancel method is called. -
Noop
The comparison cannot be cancelled. This is the default.
-
-
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
-