Class EventBusImpl
java.lang.Object
energy.eddie.regionconnector.shared.event.sourcing.EventBusImpl
- All Implemented Interfaces:
EventBus,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidemit(PermissionEvent event) Emit an event via the EventBus.reactor.core.publisher.Flux<PermissionEvent> filteredFlux(PermissionProcessStatus status) Get all events of a specificPermissionProcessStatus.<T extends PermissionEvent>
reactor.core.publisher.Flux<T> filteredFlux(Class<T> clazz) Get all events of a specific type.
-
Constructor Details
-
EventBusImpl
public EventBusImpl()
-
-
Method Details
-
emit
Description copied from interface:EventBusEmit an event via the EventBus. Every subscriber to this event will get the event. -
filteredFlux
Description copied from interface:EventBusGet all events of a specific type.- Specified by:
filteredFluxin interfaceEventBus- Type Parameters:
T- the type of the event- Parameters:
clazz- the class of the events.- Returns:
- a flux, which streams the subscribed events.
-
filteredFlux
Description copied from interface:EventBusGet all events of a specificPermissionProcessStatus.- Specified by:
filteredFluxin interfaceEventBus- Parameters:
status- thePermissionProcessStatusof the event.- Returns:
- a flux, which streams the subscribed events.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-