postEvent

protected Optional<Event> postEvent(EventMessage event, Origin explicitOrigin)

Posts a system event with the specified origin.

Return

an instance of posted Event if it was actually posted and an empty Optional if the event was intercepted by the eventFilter

Parameters

event

an event to post

explicitOrigin

the event origin


protected Optional<Event> postEvent(EventMessage event)

Posts an event to a system write side.

Return

an instance of posted Event if it was actually posted and an empty Optional if the event was intercepted by the eventFilter

Parameters

event

an event to post