EventDispatch

public void EventDispatch(BiFunction<E, EventEnvelope, DispatchOutcome> dispatchFunction, E entity, EventEnvelope event)

Creates a new EventDispatch from the given dispatch function.

Parameters

dispatchFunction

the BiFunction that performs a dispatch operation

entity

the entity to which the event is dispatched

event

the dispatched event