Interface MessageBusChannelFactory
-
- All Known Implementing Classes:
SynchronousMessageBusChannelFactory
public interface MessageBusChannelFactoryWhenever a new class specificChannelis required by theMessageBus, theMessageBusChannelFactoryis called to create a newChannel.- See Also:
- EventMaid Documentation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Channel<Object>createChannel(EventType eventType, Subscriber<?> subscriber, MessageBusExceptionHandler messageBusExceptionHandler)This method is being called, when a newChannelis requested.
-
-
-
Method Detail
-
createChannel
Channel<Object> createChannel(EventType eventType, Subscriber<?> subscriber, MessageBusExceptionHandler messageBusExceptionHandler)
This 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.- 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
-
-