public interface EventManager
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event event)
Adds an event to the manager.
|
void |
clearEventHistory(String eventSource) |
int |
getEventHistorySize()
Returns the history size.
|
List<Event> |
getEvents(String eventSource)
Returns a list of events for a given source sorted by the event's timestamp where the most recent event is first in the list.
|
Event |
getMostRecentEvent(String eventSource) |
void addEvent(Event event)
event
- an EventList<Event> getEvents(String eventSource)
eventSource
- the sourcevoid clearEventHistory(String eventSource)
int getEventHistorySize()
Copyright © 2016 Apache NiFi Project. All rights reserved.