EventDispatchingPhase

public final class EventDispatchingPhase<I, E extends TransactionalEntity<I, ? extends Object, ? extends Object>> extends Phase<I>

A phase that dispatches an event to the entity in transaction.

Parameters

<I>

the type of entity ID

<E>

the type of the entity

Constructors

Link copied to clipboard
public void EventDispatchingPhase(Transaction<I, ? extends Object, ? extends Object, ? extends Object> transaction, EventDispatch<I, E> dispatch, VersionIncrement increment)

Functions

Link copied to clipboard
public I entityId()
Returns the ID of the entity to which the Message is dispatched.
Link copied to clipboard
public SignalId messageId()
Returns the dispatched Message ID.
Link copied to clipboard
protected DispatchOutcome performDispatch()
Executes the dispatch task and returns the result.
Link copied to clipboard
protected Signal<?, ?, ?> signal()
Obtains the signal message applied by this phase.