- java.lang.Object
-
- java.lang.Enum<ReentryGuardFactory.GuardType>
-
- ch.qos.logback.core.util.ReentryGuardFactory.GuardType
-
- All Implemented Interfaces:
Serializable,Comparable<ReentryGuardFactory.GuardType>
- Enclosing class:
- ReentryGuardFactory
public static enum ReentryGuardFactory.GuardType extends Enum<ReentryGuardFactory.GuardType>
Types of guards that can be produced by this factory. THREAD_LOCAL - returns aReentryGuard.ReentryGuardImplbacked by a ThreadLocal. NOP - returns aReentryGuard.NOPRentryGuardwhich never locks.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOPTHREAD_LOCAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReentryGuardFactory.GuardTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ReentryGuardFactory.GuardType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THREAD_LOCAL
public static final ReentryGuardFactory.GuardType THREAD_LOCAL
-
NOP
public static final ReentryGuardFactory.GuardType NOP
-
-
Method Detail
-
values
public static ReentryGuardFactory.GuardType[] 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 (ReentryGuardFactory.GuardType c : ReentryGuardFactory.GuardType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReentryGuardFactory.GuardType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-