Class SynchronousMessageBusChannelFactory
- java.lang.Object
-
- de.quantummaid.eventmaid.messagebus.channelcreating.SynchronousMessageBusChannelFactory
-
- All Implemented Interfaces:
MessageBusChannelFactory
public final class SynchronousMessageBusChannelFactory extends Object implements MessageBusChannelFactory
The defaultMessageBusChannelFactory, that creates synchronousChannels.- See Also:
- EventMaid Documentation
-
-
Constructor Summary
Constructors Constructor Description SynchronousMessageBusChannelFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Channel<Object>createChannel(EventType eventType, Subscriber<?> subscriber, MessageBusExceptionHandler messageBusExceptionHandler)This method is being called, when a newChannelis requested.static SynchronousMessageBusChannelFactorysynchronousMessageBusChannelFactory()Factory method to create a newSynchronousMessageBusChannelFactory.
-
-
-
Method Detail
-
synchronousMessageBusChannelFactory
public static SynchronousMessageBusChannelFactory synchronousMessageBusChannelFactory()
Factory method to create a newSynchronousMessageBusChannelFactory.- Returns:
- the newly
SynchronousMessageBusChannelFactory
-
createChannel
public Channel<Object> createChannel(EventType eventType, Subscriber<?> subscriber, MessageBusExceptionHandler messageBusExceptionHandler)
Description copied from interface:MessageBusChannelFactoryThis method is being called, when a newChannelis requested. Can happen in two cases. First a subscriber is added for a not yet knownEventType. Second, a message with an unknownEventTypewas sent. Then a newChannelis created, that will delivery further messages of theEventType.- Specified by:
createChannelin interfaceMessageBusChannelFactory- Parameters:
eventType- theEventTypefor which theChannelshould be created.subscriber- if the request is done for a newSubscriber, it is given here.nullotherwisemessageBusExceptionHandler- theMessageBusExceptionHandlerconfigured on theMessageBus- Returns:
- the newly created
Channel
-
-