Package com.apama.event
Class EventListenerAdapter
- java.lang.Object
-
- com.apama.event.EventListenerAdapter
-
- All Implemented Interfaces:
IEventListener
public abstract class EventListenerAdapter extends java.lang.Object implements IEventListener
EventListenerAdapter is a class that provides a skeletal implementation of the IEventListener interface to minimize effort required to implement the interface.This class provides a simple no-op implementation of the handleEvent(Event) method, and an implementation of the handleEvents(Event[]) method that calls the single handleEvent(Event) method for each event in the array.
To provide a concrete implementation, the programmer needs only to extend this class to provide an implementation of the handleEvent(Event) method, and optionally also the handleEvents(Event[]) method.
-
-
Constructor Summary
Constructors Constructor Description EventListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEvent(Event event)
Simple no-op implementation of the interface method.void
handleEvents(Event[] events)
Simple implementation of the interface method that calls handleEvent(Event) for each item in the array.
-
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
Simple no-op implementation of the interface method.- Specified by:
handleEvent
in interfaceIEventListener
- Parameters:
event
- The received Event.- See Also:
IEventListener.handleEvent(com.apama.event.Event)
-
handleEvents
public void handleEvents(Event[] events)
Simple implementation of the interface method that calls handleEvent(Event) for each item in the array.- Specified by:
handleEvents
in interfaceIEventListener
- Parameters:
events
- The received array of Events.- See Also:
IEventListener.handleEvents(com.apama.event.Event[])
-
-