public interface EventProcessor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EventProcessor.Factory<TYPE extends EventProcessor> |
| Modifier and Type | Method and Description |
|---|---|
void |
createEvents(EventFactory eventFactory,
EventProcessorParameters parameters,
EventConsumer<List<EventWithContext>> eventsConsumer)
Creates events by using the given
EventFactory and passing them to the given EventConsumer. |
void |
sourceMessagesForEvent(Event event,
Consumer<List<MessageSummary>> messageConsumer,
long limit)
Gets all source messages for the given
Event and passes them to the messageConsumer. |
void createEvents(EventFactory eventFactory, EventProcessorParameters parameters, EventConsumer<List<EventWithContext>> eventsConsumer) throws EventProcessorException
EventFactory and passing them to the given EventConsumer.eventFactory - the event factory to create new Event instancesparameters - the event processor execution parameterseventsConsumer - the event consumerEventProcessorException - if the execution failsEventProcessorPreconditionException - if any preconditions are not metvoid sourceMessagesForEvent(Event event, Consumer<List<MessageSummary>> messageConsumer, long limit) throws EventProcessorException
Event and passes them to the messageConsumer.event - the event to get all source messages formessageConsumer - the consumer that all source messages will be passed intolimit - the maximum number of messages to getEventProcessorExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.