sentToInbox

public static DispatchOutcome sentToInbox<I>(SignalEnvelope<? extends Object, ? extends Object, ? extends Object> signal, I entityId)

Returns an outcome, which tells that the passed signal was sent to the inbox of the entity with the passed ID.

Parameters

signal

the signal which has been sent to the inbox

entityId

identifier of the entity, to which inbox the signal has been sent


public static DispatchOutcome sentToInbox<I>(EventEnvelope event, Set<I> entityIds)

Returns an outcome, which tells that the passed event was sent to several inboxes of entities with the passed identifiers.

In case an empty set of entity IDs was passed, returns an outcome telling there were no targets to route the signal to.

Parameters

event

the event which has been sent to inboxes

entityIds

identifiers of entities, to which inboxes the event has been sent