public interface EventRegistry
InboundEventChannelAdapter
and then passed through as a event registry event.| Modifier and Type | Method and Description |
|---|---|
void |
eventReceived(InboundChannelModel channelModel,
InboundEvent event)
Events received in adapters should call this method to process events.
|
void |
eventReceived(InboundChannelModel channelModel,
String event) |
String |
generateKey(Map<String,Object> data)
Method to generate the unique key used to correlate an event.
|
OutboundEventProcessor |
getSystemOutboundEventProcessor() |
void |
registerEventRegistryEventConsumer(EventRegistryEventConsumer eventRegistryEventBusConsumer)
Registers a
EventRegistryEventConsumer instance (a consumer of event registry events which
is created by any of the engines). |
void |
removeFlowableEventRegistryEventConsumer(EventRegistryEventConsumer eventRegistryEventBusConsumer)
Removes the event consumer from the event registry
|
void |
sendEventOutbound(EventInstance eventInstance,
Collection<ChannelModel> channelModels)
Send out the
eventInstance via the given channelModel(s). |
void |
sendEventToConsumers(EventRegistryEvent eventRegistryEvent)
Send an event to all the registered event consumers.
|
void |
sendSystemEventOutbound(EventInstance eventInstance)
Send out the
eventInstance via the given system OutboundEventProcessor. |
void |
setInboundEventProcessor(InboundEventProcessor inboundEventProcessor)
The
InboundEventProcessor is responsible for handling any new event. |
void |
setOutboundEventProcessor(OutboundEventProcessor outboundEventProcessor)
The
OutboundEventProcessor is responsible for handling sending out events. |
void |
setSystemOutboundEventProcessor(OutboundEventProcessor outboundEventProcessor)
The
OutboundEventProcessor is responsible for handling sending system out events. |
void setInboundEventProcessor(InboundEventProcessor inboundEventProcessor)
InboundEventProcessor is responsible for handling any new event.
The event registry will simply pass any event it receives to this instance.void setOutboundEventProcessor(OutboundEventProcessor outboundEventProcessor)
OutboundEventProcessor is responsible for handling sending out events.
The event registry will simply pass any event it needs to send to this instance.OutboundEventProcessor getSystemOutboundEventProcessor()
void setSystemOutboundEventProcessor(OutboundEventProcessor outboundEventProcessor)
OutboundEventProcessor is responsible for handling sending system out events.
The event registry will simply pass any event it needs to send to this instance.void registerEventRegistryEventConsumer(EventRegistryEventConsumer eventRegistryEventBusConsumer)
EventRegistryEventConsumer instance (a consumer of event registry events which
is created by any of the engines).void removeFlowableEventRegistryEventConsumer(EventRegistryEventConsumer eventRegistryEventBusConsumer)
String generateKey(Map<String,Object> data)
data - data information used to generate the key (must not be null)void eventReceived(InboundChannelModel channelModel, String event)
void eventReceived(InboundChannelModel channelModel, InboundEvent event)
void sendEventToConsumers(EventRegistryEvent eventRegistryEvent)
void sendSystemEventOutbound(EventInstance eventInstance)
eventInstance via the given system OutboundEventProcessor.void sendEventOutbound(EventInstance eventInstance, Collection<ChannelModel> channelModels)
eventInstance via the given channelModel(s).Copyright © 2022 Flowable. All rights reserved.