EventFilter

public final class EventFilter extends TypedFilter<M>

A subscription filter which targets an Event.

Can filter events by conditions on both message and context. See factory methods of the class for details.

Functions

Link copied to clipboard
public static EventFilter eq(EventContextField field, Object value)
Creates a new equality filter which targets a field in the event context.
public static EventFilter eq(EventMessageField field, Object value)
Creates a new equality filter which targets a field in the event message.
Link copied to clipboard
public static EventFilter ge(EventContextField field, Object value)
Creates a new "greater than or equals" filter which targets a field in the event context.
public static EventFilter ge(EventMessageField field, Object value)
Creates a new "greater than or equals" filter which targets a field in the event message.
Link copied to clipboard
public static EventFilter gt(EventContextField field, Object value)
Creates a new "greater than" filter which targets a field in the event context.
public static EventFilter gt(EventMessageField field, Object value)
Creates a new "greater than" filter which targets a field in the event message.
Link copied to clipboard
public static EventFilter le(EventContextField field, Object value)
Creates a new "less than or equals" filter which targets a field in the event context.
public static EventFilter le(EventMessageField field, Object value)
Creates a new "less than or equals" filter which targets a field in the event message.
Link copied to clipboard
public static EventFilter lt(EventContextField field, Object value)
Creates a new "less than" filter which targets a field in the event context.
public static EventFilter lt(EventMessageField field, Object value)
Creates a new "less than" filter which targets a field in the event message.
Link copied to clipboard
public boolean test(Event event)

Inherited functions

Link copied to clipboard
public Predicate<T> and(Predicate<? extends Object> other)
Link copied to clipboard
public static Predicate<T> isEqual<T>(Object targetRef)
Link copied to clipboard
public Predicate<T> negate()
Link copied to clipboard
public static Predicate<T> not<T>(Predicate<? extends Object> target)
Link copied to clipboard
public Predicate<T> or(Predicate<? extends Object> other)