Class 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 int LOGLEVEL
      Log level for ExecutorTrace messages
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutorTrace()  
    • Field Detail

      • LOGLEVEL

        public static final int LOGLEVEL
        Log level for ExecutorTrace messages
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExecutorTrace

        public ExecutorTrace()
    • 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 log
        debugging - 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 log
        nSeverity - 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 the Supplier, 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 the Supplier, 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 logged
        debugging - 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 the Supplier, 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 logged
        nSeverity - the severity level