@Singleton public class LocalEventTransportService extends Object implements EventTransportService
Modifier and Type | Method and Description |
---|---|
boolean |
routeEvent(event : Event,
space : EventSpace,
scope : Scope<? super Address>)
Route the given event into
This function emits the event only on the internal event bus of the listeners.
|
@Pure
public def
routeEvent(event : Event,
space : EventSpace,
scope : Scope<? super Address>) : boolean
EventTransportService
This function emits the event only on the internal event bus of the listeners.
This function launch a task for each matching listener.
routeEvent
in interface EventTransportService
event
- the event to emit.scope
- description of the scope of the event, i.e. the receivers of the event.true
if the message should be also routed locally by the space instance itself.
false
if the space instance must not route the event.Copyright © 2020 the original authors or authors.