@Beta public static enum CycleDetectingLockFactory.Policies extends Enum<CycleDetectingLockFactory.Policies> implements CycleDetectingLockFactory.Policy
|Enum Constant and Description|
Disables cycle detection.
When potential deadlock is detected, this policy results in the throwing of the
When potential deadlock is detected, this policy results in the logging of a
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final CycleDetectingLockFactory.Policies THROW
PotentialDeadlockExceptionindicating the potential deadlock, which includes stack traces illustrating the cycle in lock acquisition order.
public static final CycleDetectingLockFactory.Policies WARN
Level.SEVEREmessage indicating the potential deadlock, which includes stack traces illustrating the cycle in lock acquisition order.
public static final CycleDetectingLockFactory.Policies DISABLED
Note that locks created by a factory with this policy will not participate the cycle detection performed by locks created by other factories.
public static CycleDetectingLockFactory.Policies values()
for (CycleDetectingLockFactory.Policies c : CycleDetectingLockFactory.Policies.values()) System.out.println(c);
public static CycleDetectingLockFactory.Policies valueOf(String name)
name- the name of the enum constant to be returned.
IllegalArgumentException- if this enum type has no constant with the specified name
NullPointerException- if the argument is null
Copyright © 2010-2017. All Rights Reserved.