Package cz.xtf.core.waiting
Enum Waiter.LogPoint
- java.lang.Object
-
- java.lang.Enum<Waiter.LogPoint>
-
- cz.xtf.core.waiting.Waiter.LogPoint
-
- All Implemented Interfaces:
Serializable,Comparable<Waiter.LogPoint>
- Enclosing interface:
- Waiter
public static enum Waiter.LogPoint extends Enum<Waiter.LogPoint>
Object for configurable conditional logging of waiting.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogEnd(String reason, long millis)Logs end of waiting using the selected logging{@param level}.voidlogEnd(String reason, long millis, org.slf4j.event.Level level)Logs end of waiting.voidlogStart(String reason, long millis)Logs start of waiting.voidlogStart(String reason, long millis, org.slf4j.event.Level level)Logs start of waiting using the selected logging{@param level}.static Waiter.LogPointvalueOf(String name)Returns the enum constant of this type with the specified name.static Waiter.LogPoint[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Waiter.LogPoint NONE
-
START
public static final Waiter.LogPoint START
-
END
public static final Waiter.LogPoint END
-
BOTH
public static final Waiter.LogPoint BOTH
-
-
Method Detail
-
values
public static Waiter.LogPoint[] 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 (Waiter.LogPoint c : Waiter.LogPoint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Waiter.LogPoint 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
-
logStart
public void logStart(String reason, long millis)
- Parameters:
reason- reason of waitingmillis- waiting timeout on condition
-
logStart
public void logStart(String reason, long millis, org.slf4j.event.Level level)
Logs start of waiting using the selected logging{@param level}. Its time and reason in case ofSTARTorBOTH.- Parameters:
reason- reason of waitingmillis- waiting timeout on conditionlevel- logging severity of{@param reason}log
-
logEnd
public void logEnd(String reason, long millis)
Logs end of waiting using the selected logging{@param level}. Its time and reason in case ofENDorBOTH- Parameters:
reason- reason of waitingmillis- waiting timeout on condition
-
logEnd
public void logEnd(String reason, long millis, org.slf4j.event.Level level)
- Parameters:
reason- reason of waitingmillis- waiting timeout on conditionlevel- logging severity of {@param reason} log
-
-