filter

public Optional<? extends EventMessage> filter(EventMessage event)

Applies this filter to the given event.

Return

processed event or empty if the event should not be posted

Parameters

event

the event to apply the filter to


public ImmutableCollection<Event> filter(Collection<Event> events)

Applies this filter to the given Events in bulk.

Return

non-empty filtering results for the given events

Parameters

events

the events to apply the filter to