org.axonframework.eventhandling.amqp.spring
Interface RabbitMqStrategy

All Known Implementing Classes:
DefaultRabbitMqStrategy, LegacyRabbitMqStrategy

public interface RabbitMqStrategy

Interface describing a strategy for creating a SimpleMessageListenerContainer class and setting the exclusive mode on the underlying subscriptions. Up until Spring AMQP 1.2, this was not supported. Support was added in Spring AMQP 1.3 in a backward incompatible fashion.

Since:
2.4
Author:
Allard Buijze

Method Summary
 org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer createContainer()
          Create a new instance of the container
 void setExclusive(org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer container, boolean exclusive)
          Define exclusive mode on the underlying container
 

Method Detail

setExclusive

void setExclusive(org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer container,
                  boolean exclusive)
Define exclusive mode on the underlying container

Parameters:
container - The container to set exclusive mode on
exclusive - Whether to enable or disable exclusive mode

createContainer

org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer createContainer()
Create a new instance of the container

Returns:
a new instance of the container


Copyright © 2010-2016. All Rights Reserved.