Class ExecutorTrace
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.internal.ExecutorTrace
-
public class ExecutorTrace extends Object
Utility class used to trace executor processors, subscribers, and tasks.- Since:
- 21.12
- Author:
- lh
-
-
Field Summary
Fields Modifier and Type Field Description static intLOGLEVELLog level for ExecutorTrace messages
-
Constructor Summary
Constructors Constructor Description ExecutorTrace()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEnabled(int nSeverity)Return true if executor trace logging is enabled; false otherwise.static voidlog(String message)Log the specified message at the Debugging severity level.static voidlog(String message, int nSeverity)Log the specified message at the specified severity level.static voidlog(String message, Debugging debugging)Log the specified message with the given debugging option.static voidlog(Supplier<String> supplierMessage)Log the specified message at the Debugging severity level.static voidlog(Supplier<String> supplierMessage, int nSeverity)Log the specified message at the specified severity level.static voidlog(Supplier<String> supplierMessage, Debugging debugging)Log the specified message with the given debugging option.
-
-
-
Field Detail
-
LOGLEVEL
public static final int LOGLEVEL
Log level for ExecutorTrace messages- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public static boolean isEnabled(int nSeverity)
Return true if executor trace logging is enabled; false otherwise.- Parameters:
nSeverity- the severity level- Returns:
- true if executor trace logging is enabled
-
log
public static void log(String message)
Log the specified message at the Debugging severity level. Default severity level is Logger.FINEST.- Parameters:
message- the message to log
-
log
public static void log(String message, Debugging debugging)
Log the specified message with the given debugging option.- Parameters:
message- the message to logdebugging- the debugging option
-
log
public static void log(String message, int nSeverity)
Log the specified message at the specified severity level.- Parameters:
message- the message to lognSeverity- the severity level
-
log
public static void log(Supplier<String> supplierMessage)
Log the specified message at the Debugging severity level. Default severity level is Logger.FINEST. The message is provided by theSupplier, which will only be evaluated if the messages should be logged at the specified severity level. This avoids potentially expensive message construction if the message isn't going to be logged.- Parameters:
supplierMessage- the supplier of the message to log; only evaluated if the Debugging severity level should be logged
-
log
public static void log(Supplier<String> supplierMessage, Debugging debugging)
Log the specified message with the given debugging option. The message is provided by theSupplier, which will only be evaluated if the messages should be logged at the specified severity level. This avoids potentially expensive message construction if the message isn't going to be logged.- Parameters:
supplierMessage- the supplier of the message to log; only evaluated if the specified severity level should be loggeddebugging- the debugging option
-
log
public static void log(Supplier<String> supplierMessage, int nSeverity)
Log the specified message at the specified severity level. The message is provided by theSupplier, which will only be evaluated if the messages should be logged at the specified severity level. This avoids potentially expensive message construction if the message isn't going to be logged.- Parameters:
supplierMessage- the supplier of the message to log; only evaluated if the specified severity level should be loggednSeverity- the severity level
-
-