Class BrokerEventListener

    • Constructor Detail

      • BrokerEventListener

        public BrokerEventListener​(ConnectionFactory connectionFactory,
                                   String... eventKeys)
        Construct an instance using the supplied connection factory and event keys. Event keys are patterns to match routing keys for events published to the amq.rabbitmq.event topic exchange. They can therefore match wildcards; examples are user.#, queue.created. Refer to the plugin documentation for information about available events. A single-threaded DirectMessageListenerContainer will be created; its lifecycle will be controlled by this object's SmartLifecycle methods.
        Parameters:
        connectionFactory - the connection factory.
        eventKeys - the event keys.
      • BrokerEventListener

        public BrokerEventListener​(AbstractMessageListenerContainer container,
                                   String... eventKeys)
        Construct an instance using the supplied listener container factory and event keys. Event keys are patterns to match routing keys for events published to the amq.rabbitmq.event topic exchange. They can therefore match wildcards; examples are user.#, queue.created. Refer to the plugin documentation for information about available events. The container's lifecycle will be not be controlled by this object's SmartLifecycle methods. The container should not be configured with queues or a MessageListener; those properties will be replaced.
        Parameters:
        container - the listener container.
        eventKeys - the event keys.