@ApplicationScoped public class ReactiveEventService extends Object implements EventService
Modifier and Type | Field and Description |
---|---|
static String |
REACTIVE_DESTINATION |
Constructor and Description |
---|
ReactiveEventService()
Create a new Reactive Stream Event Service with a no-op serializer.
|
ReactiveEventService(EventSerializationService serializer)
Create a new Reactive Stream Event Service.
|
Modifier and Type | Method and Description |
---|---|
void |
emit(Event event)
Emit an event to the event service.
|
io.reactivex.Flowable<org.eclipse.microprofile.reactive.messaging.Message<String>> |
publish()
Send the event to the reactive stream destination.
|
public static final String REACTIVE_DESTINATION
public ReactiveEventService()
@Inject public ReactiveEventService(EventSerializationService serializer)
serializer
- the event serializerpublic void emit(Event event)
EventService
emit
in interface EventService
event
- the eventpublic io.reactivex.Flowable<org.eclipse.microprofile.reactive.messaging.Message<String>> publish()