Package org.flowable.eventregistry.impl
Class DefaultEventRegistry
- java.lang.Object
-
- org.flowable.eventregistry.impl.DefaultEventRegistry
-
- All Implemented Interfaces:
EventRegistry
public class DefaultEventRegistry extends Object implements EventRegistry
- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected CorrelationKeyGenerator<Map<String,Object>>correlationKeyGeneratorprotected EventRegistryEngineConfigurationengineConfigurationprotected InboundEventProcessorinboundEventProcessorprotected OutboundEventProcessoroutboundEventProcessorprotected OutboundEventProcessorsystemOutboundEventProcessor
-
Constructor Summary
Constructors Constructor Description DefaultEventRegistry(EventRegistryEngineConfiguration engineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideventReceived(InboundChannelModel channelModel, String event)voideventReceived(InboundChannelModel channelModel, InboundEvent event)StringgenerateKey(Map<String,Object> data)OutboundEventProcessorgetSystemOutboundEventProcessor()voidregisterEventRegistryEventConsumer(EventRegistryEventConsumer eventRegistryEventBusConsumer)voidremoveFlowableEventRegistryEventConsumer(EventRegistryEventConsumer eventRegistryEventBusConsumer)voidsendEventOutbound(EventInstance eventInstance, Collection<ChannelModel> channelModels)voidsendEventToConsumers(EventRegistryEvent eventRegistryEvent)voidsendSystemEventOutbound(EventInstance eventInstance)voidsetInboundEventProcessor(InboundEventProcessor inboundEventProcessor)voidsetOutboundEventProcessor(OutboundEventProcessor outboundEventProcessor)voidsetSystemOutboundEventProcessor(OutboundEventProcessor systemOutboundEventProcessor)
-
-
-
Field Detail
-
engineConfiguration
protected EventRegistryEngineConfiguration engineConfiguration
-
correlationKeyGenerator
protected CorrelationKeyGenerator<Map<String,Object>> correlationKeyGenerator
-
inboundEventProcessor
protected InboundEventProcessor inboundEventProcessor
-
outboundEventProcessor
protected OutboundEventProcessor outboundEventProcessor
-
systemOutboundEventProcessor
protected OutboundEventProcessor systemOutboundEventProcessor
-
-
Constructor Detail
-
DefaultEventRegistry
public DefaultEventRegistry(EventRegistryEngineConfiguration engineConfiguration)
-
-
Method Detail
-
setInboundEventProcessor
public void setInboundEventProcessor(InboundEventProcessor inboundEventProcessor)
- Specified by:
setInboundEventProcessorin interfaceEventRegistry
-
setOutboundEventProcessor
public void setOutboundEventProcessor(OutboundEventProcessor outboundEventProcessor)
- Specified by:
setOutboundEventProcessorin interfaceEventRegistry
-
getSystemOutboundEventProcessor
public OutboundEventProcessor getSystemOutboundEventProcessor()
- Specified by:
getSystemOutboundEventProcessorin interfaceEventRegistry
-
setSystemOutboundEventProcessor
public void setSystemOutboundEventProcessor(OutboundEventProcessor systemOutboundEventProcessor)
- Specified by:
setSystemOutboundEventProcessorin interfaceEventRegistry
-
eventReceived
public void eventReceived(InboundChannelModel channelModel, String event)
- Specified by:
eventReceivedin interfaceEventRegistry
-
eventReceived
public void eventReceived(InboundChannelModel channelModel, InboundEvent event)
- Specified by:
eventReceivedin interfaceEventRegistry
-
sendEventToConsumers
public void sendEventToConsumers(EventRegistryEvent eventRegistryEvent)
- Specified by:
sendEventToConsumersin interfaceEventRegistry
-
sendSystemEventOutbound
public void sendSystemEventOutbound(EventInstance eventInstance)
- Specified by:
sendSystemEventOutboundin interfaceEventRegistry
-
sendEventOutbound
public void sendEventOutbound(EventInstance eventInstance, Collection<ChannelModel> channelModels)
- Specified by:
sendEventOutboundin interfaceEventRegistry
-
registerEventRegistryEventConsumer
public void registerEventRegistryEventConsumer(EventRegistryEventConsumer eventRegistryEventBusConsumer)
- Specified by:
registerEventRegistryEventConsumerin interfaceEventRegistry
-
removeFlowableEventRegistryEventConsumer
public void removeFlowableEventRegistryEventConsumer(EventRegistryEventConsumer eventRegistryEventBusConsumer)
- Specified by:
removeFlowableEventRegistryEventConsumerin interfaceEventRegistry
-
generateKey
public String generateKey(Map<String,Object> data)
- Specified by:
generateKeyin interfaceEventRegistry
-
-