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 java.lang.Runnable
createRunnable(Log eventLog)
Create a Runnable to handle the passed-in event Log.java.lang.Runnable
createRunnable(Log eventLog, boolean synchronous)
Create a Runnable to handle the passed-in event Log.
-
-
-
Method Detail
-
createRunnable
java.lang.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
java.lang.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
-
-