|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CycleDetectingLockFactory.Policies> com.google.common.util.concurrent.CycleDetectingLockFactory.Policies
@Beta public static enum CycleDetectingLockFactory.Policies
Pre-defined CycleDetectingLockFactory.Policy
implementations.
Enum Constant Summary | |
---|---|
DISABLED
Disables cycle detection. |
|
THROW
When potential deadlock is detected, this policy results in the throwing of the PotentialDeadlockException indicating the potential
deadlock, which includes stack traces illustrating the cycle in lock
acquisition order. |
|
WARN
When potential deadlock is detected, this policy results in the logging of a Level.SEVERE message indicating the potential deadlock,
which includes stack traces illustrating the cycle in lock acquisition
order. |
Method Summary | |
---|---|
static CycleDetectingLockFactory.Policies |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CycleDetectingLockFactory.Policies[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.common.util.concurrent.CycleDetectingLockFactory.Policy |
---|
handlePotentialDeadlock |
Enum Constant Detail |
---|
public static final CycleDetectingLockFactory.Policies THROW
PotentialDeadlockException
indicating the potential
deadlock, which includes stack traces illustrating the cycle in lock
acquisition order.
public static final CycleDetectingLockFactory.Policies WARN
Level.SEVERE
message 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.
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |