Class InternalEventManager

java.lang.Object
com.github.eventmanager.internal.ManagerBase
com.github.eventmanager.InternalEventManager

public final class InternalEventManager extends ManagerBase
The InternalEventManager class is responsible for managing internal events of the EventManager library. It provides a reliable way to identify and troubleshoot possibly issues within the library.
  • Constructor Details

    • InternalEventManager

      public InternalEventManager(LogHandler logHandler)
  • Method Details

    • stopPipeline

      public void stopPipeline()
      Stops the internal event thread by interrupting it and waiting for it to finish. This method should be called before shutting down the application to ensure that all internal events are written to the log file.
    • logFatal

      public void logFatal(String message)
      Log a fatal events to the log file.
      Parameters:
      message - the message to log.
    • logError

      public void logError(String message)
      Log an error event to the log file.
      Parameters:
      message - the message to log.
    • logWarn

      public void logWarn(String message)
      Log a warning event to the log file.
      Parameters:
      message - the message to log.
    • logInfo

      public void logInfo(String message)
      Log an informational event to the log file.
      Parameters:
      message - the message to log.
    • logDebug

      public void logDebug(String message)
      Log a debug event to the log file.
      Parameters:
      message - the message to log.
    • areInfoLogsEnabled

      public boolean areInfoLogsEnabled()