Class PolarisServiceBusEventDispatcher
java.lang.Object
org.apache.polaris.service.events.PolarisServiceBusEventDispatcher
- All Implemented Interfaces:
PolarisEventDispatcher
@ApplicationScoped
public class PolarisServiceBusEventDispatcher
extends Object
implements PolarisEventDispatcher
An event dispatcher that publishes events to the Vert.x event bus.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe address of the event bus channel where Polaris service events are published. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(PolarisEvent event) Dispatches the given Polaris service event to the Vert.x event bus.booleanhasListeners(PolarisEventType polarisEventType)
-
Field Details
-
POLARIS_EVENT_CHANNEL
The address of the event bus channel where Polaris service events are published.- See Also:
-
-
Constructor Details
-
PolarisServiceBusEventDispatcher
public PolarisServiceBusEventDispatcher()
-
-
Method Details
-
dispatch
Dispatches the given Polaris service event to the Vert.x event bus.- Specified by:
dispatchin interfacePolarisEventDispatcher- Parameters:
event- The Polaris service event to dispatch.
-
hasListeners
- Specified by:
hasListenersin interfacePolarisEventDispatcher
-