EventRoute

public interface EventRoute<I, M extends EventMessage> implements Multicast<I, M, C>

Obtains a set of entity IDs for which to deliver an event.

Parameters

<I>

the type of entity IDs

<M>

the type of event messages to get IDs from

Inheritors

Functions

Link copied to clipboard
public static EventRoute<I, EventMessage> byFirstMessageField<I>(Class<I> idClass)
Creates an event route that obtains event producer ID from an EventContext and returns it as a sole element of the immutable set.
Link copied to clipboard
public static EventRoute<I, EventMessage> byProducerId<I>()
Creates an event route that obtains event producer ID from an EventContext and returns it as a sole element of the immutable set.
Link copied to clipboard
public static Set<I> noTargets<I>()
Returns the empty immutable set.
Link copied to clipboard
public static Set<I> withId<I>(I id)
Creates an immutable singleton set with the passed ID.

Inherited functions

Link copied to clipboard
public BiFunction<T, U, V> andThen<V>(Function<? extends Object, ? extends V> after)
Link copied to clipboard
public abstract R apply(M message, C context)
Obtains entity ID(s) from the passed message and its context.
public abstract R apply(T p, U p1)