Package org.opennms.netmgt.events.api
Interface EventHandler
-
- All Known Implementing Classes:
DefaultEventHandlerImpl
public interface EventHandler
EventHandler interface.
- Version:
- $Id: $
- Author:
- Tarus Balog, Mathew Brozowski, David Hustace, DJ Gregor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Runnable
createRunnable(Log eventLog)
Create a Runnable to handle the passed-in event Log.Runnable
createRunnable(Log eventLog, boolean synchronous)
Create a Runnable to handle the passed-in event Log.
-
-
-
Method Detail
-
createRunnable
Runnable createRunnable(Log eventLog)
Create a Runnable to handle the passed-in event Log.- Parameters:
eventLog
- events to be processed- Returns:
- a ready-to-run Runnable that will process the events
-
createRunnable
Runnable createRunnable(Log eventLog, boolean synchronous)
Create a Runnable to handle the passed-in event Log.- Parameters:
eventLog
- events to be processedsynchronous
- Whether the runnable should wait for all processors to finish processing before returning- Returns:
- a ready-to-run Runnable that will process the events
-
-