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