Interface EventBus
- All Known Implementing Classes:
EventBusImpl
public interface EventBus
Interface for a simple EventBus implementation.
Uses project reactor fluxes to notify subscribers of events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidemit(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.
-
Method Details
-
emit
Emit an event via the EventBus. Every subscriber to this event will get the event.- Parameters:
event- event to be emitted
-
filteredFlux
Get all events of a specific type.- Type Parameters:
T- the type of the event- Parameters:
clazz- the class of the events.- Returns:
- a flux, which streams the subscribed events.
-
filteredFlux
Get all events of a specificPermissionProcessStatus.- Parameters:
status- thePermissionProcessStatusof the event.- Returns:
- a flux, which streams the subscribed events.
-