Class SynchronousMessageBusChannelFactory

    • Constructor Detail

      • SynchronousMessageBusChannelFactory

        public SynchronousMessageBusChannelFactory()
    • Method Detail

      • synchronousMessageBusChannelFactory

        public static SynchronousMessageBusChannelFactory synchronousMessageBusChannelFactory()
        Factory method to create a new SynchronousMessageBusChannelFactory.
        Returns:
        the newly SynchronousMessageBusChannelFactory
      • createChannel

        public Channel<Object> createChannel​(EventType eventType,
                                             Subscriber<?> subscriber,
                                             MessageBusExceptionHandler messageBusExceptionHandler)
        Description copied from interface: MessageBusChannelFactory
        This method is being called, when a new Channel is requested. Can happen in two cases. First a subscriber is added for a not yet known EventType. Second, a message with an unknown EventType was sent. Then a new Channel is created, that will delivery further messages of the EventType.
        Specified by:
        createChannel in interface MessageBusChannelFactory
        Parameters:
        eventType - the EventType for which the Channel should be created.
        subscriber - if the request is done for a new Subscriber, it is given here. null otherwise
        messageBusExceptionHandler - the MessageBusExceptionHandler configured on the MessageBus
        Returns:
        the newly created Channel