Search in sources :

Example 1 with Experimental

use of io.spine.annotation.Experimental in project core-java by SpineEventEngine.

the class BoundedContext method notify.

/**
 * Sends an integration event to this {@code BoundedContext}.
 */
@Experimental
@Override
public void notify(IntegrationEvent integrationEvent, StreamObserver<Ack> observer) {
    final Event event = EventFactory.toEvent(integrationEvent);
    eventBus.post(event, observer);
}
Also used : Event(io.spine.core.Event) IntegrationEvent(io.spine.server.integration.IntegrationEvent) Experimental(io.spine.annotation.Experimental)

Aggregations

Experimental (io.spine.annotation.Experimental)1 Event (io.spine.core.Event)1 IntegrationEvent (io.spine.server.integration.IntegrationEvent)1