java.lang.Object
com.github.eventmanager.internal.ManagerBase
com.github.eventmanager.InternalEventManager
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.
-
Field Summary
Fields inherited from class com.github.eventmanager.internal.ManagerBase
eventQueue, logHandler, outputHelper, processingQueue, processorHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Log a debug event to the log file.void
Log an error event to the log file.void
Log a fatal events to the log file.void
Log an informational event to the log file.void
Log a warning event to the log file.void
Stops the internal event thread by interrupting it and waiting for it to finish.Methods inherited from class com.github.eventmanager.internal.ManagerBase
addOutput, addProcessor, castExceptionStackTraceToString, initiateThreads, initiateThreads, logMessage, logMessage, outputEvent, outputEvent, removeOutput, removeOutput, removeProcessor, removeProcessor, stopAllThreads, stopAllThreads, writeEventToProcessingQueue, writeEventToQueue
-
Constructor Details
-
InternalEventManager
-
-
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
Log a fatal events to the log file.- Parameters:
message
- the message to log.
-
logError
Log an error event to the log file.- Parameters:
message
- the message to log.
-
logWarn
Log a warning event to the log file.- Parameters:
message
- the message to log.
-
logInfo
Log an informational event to the log file.- Parameters:
message
- the message to log.
-
logDebug
Log a debug event to the log file.- Parameters:
message
- the message to log.
-
areInfoLogsEnabled
public boolean areInfoLogsEnabled()
-