EventFilter

public interface EventFilter

A filter accepting Events posted by a Repository.

A filter may allow any event, reject certain types of events, or change the event content.

Inheritors

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 abstract Optional<? extends EventMessage> filter(EventMessage event)
Applies this filter to the given event.
public ImmutableCollection<Event> filter(Collection<Event> events)
Applies this filter to the given Events in bulk.