Interface MessageBusChannelFactory

    • Method Detail

      • createChannel

        Channel<Object> createChannel​(EventType eventType,
                                      Subscriber<?> subscriber,
                                      MessageBusExceptionHandler messageBusExceptionHandler)
        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.
        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