@FunctionalInterface public interface EventTransportService
Modifier and Type | Method and Description |
---|---|
boolean |
routeEvent(event : Event,
space : EventSpace,
scope : Scope<? super Address>)
Manages events transmission, deciding when to forward it on the network or/and to route it locally
Locally, this function emits the event only on the internal event bus of the listeners.
|
def
routeEvent(event : Event,
space : EventSpace,
scope : Scope<? super Address>) : boolean
EventTransportService
Locally, this function emits the event only on the internal event bus of the listeners.
Locally, this function launches a task for each matching listener.
event
- the event to emit.^space
- the local space in which the event should be routed.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 © 2021 the original authors or authors.