CompositeEventFilter

public final class CompositeEventFilter implements EventFilter

An EventFilter which composes several other filters.

The filters are applied to the input event one by one in the order of addition. The next filter is applied to the result of the previous filter. If a filter returns an empty result, the whole composite filter returns an empty result at once.

Types

Link copied to clipboard
public final class Builder
A builder for the CompositeEventFilter instances.

Functions

Link copied to clipboard
public Optional<? extends EventMessage> filter(EventMessage event)
Applies this filter to the given event.
Link copied to clipboard
Creates a new instance of Builder for CompositeEventFilter instances.

Inherited functions

Link copied to clipboard
public static EventFilter allowAll()
Obtains an EventFilter which always returns the input event without any change.
Link copied to clipboard
public ImmutableCollection<Event> filter(Collection<Event> events)
Applies this filter to the given Events in bulk.