Package org.trellisldp.reactive
Class ReactiveEventService
- java.lang.Object
-
- org.trellisldp.reactive.ReactiveEventService
-
- All Implemented Interfaces:
EventService
@ApplicationScoped public class ReactiveEventService extends Object implements EventService
A MicroProfile-based event service.
-
-
Field Summary
Fields Modifier and Type Field Description static String
REACTIVE_DESTINATION
-
Constructor Summary
Constructors Constructor Description ReactiveEventService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
REACTIVE_DESTINATION
public static final String REACTIVE_DESTINATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
emit
public void emit(Event event)
Description copied from interface:EventService
Emit an event to the event service.- Specified by:
emit
in interfaceEventService
- Parameters:
event
- the event
-
publish
public io.reactivex.Flowable<org.eclipse.microprofile.reactive.messaging.Message<String>> publish()
Send the event to the reactive stream destination.- Returns:
- the flowable stream of messages
-
-