EventImportDispatcher

public final class EventImportDispatcher<I> implements EventDispatcher

Dispatches events to be imported to the associated aggregate repository.

Parameters

<I>

the type of aggregate IDs

Functions

Link copied to clipboard
public DispatchOutcome dispatch(EventEnvelope event)
Dispatches the message contained in the passed envelope and returns the outcome.
Link copied to clipboard
public ImmutableSet<EventClass> domesticEventClasses()
Obtains classes of domestic events processed by this dispatcher.
Link copied to clipboard
public ImmutableSet<EventClass> externalEventClasses()
Always returns empty set because external events cannot be imported.
Link copied to clipboard
public ImmutableSet<EventClass> messageClasses()
Obtains a set of message classes that can be processed by this dispatcher.

Inherited functions

Link copied to clipboard
public boolean canDispatch(E envelope)
Checks if this dispatcher can dispatch the given message.
Link copied to clipboard
public boolean dispatchesEvents()
Verifies if this instance dispatches at least one event.
Link copied to clipboard
public boolean dispatchesExternalEvents()
Verifies if this instance dispatches at least one external event.
Link copied to clipboard
public ImmutableSet<EventClass> eventClasses()
Obtains classes of all events processed by this dispatcher.