public static interface EventCollector.EventHandler<Event>
extends java.util.function.Predicate<Event>
This interface represents a kind of an event filter that also gets notified when event is collected.
Instances of this handler should be specified to an EventCollector among other predicate filters.
eventCollected(Object)| Modifier and Type | Method and Description |
|---|---|
void |
eventCollected(Event event)
This method is called by an
EventCollector when new captured event has passed ALL filters
and already got collected. |
void eventCollected(Event event)
This method is called by an EventCollector when new captured event has passed ALL filters
and already got collected. So if this instance for an event X returns false
from the Predicate.test(Object) method - then eventCollected(Object) definitely will NOT be called
for the event X. But if this instance for an event X returns true
from the Predicate.test(Object) method - then eventCollected(Object) might be called; but
only if all the other filters registered in the same collector will also return true.