org.axonframework.eventhandling.amqp.spring
Class LegacyRabbitMqStrategy

java.lang.Object
  extended by org.axonframework.eventhandling.amqp.spring.LegacyRabbitMqStrategy
All Implemented Interfaces:
RabbitMqStrategy

public class LegacyRabbitMqStrategy
extends Object
implements RabbitMqStrategy

Strategy for creating a SimpleMessageListenerContainer instance using the Spring AMQP 1.2 API. This version did not contain the option to set a consumer to exclusive mode. This strategy creates the ExtendedMessageListenerContainer, which is incompatible with the Spring AMQP 1.3 API.

Since:
2.4
Author:
Allard Buijze

Constructor Summary
LegacyRabbitMqStrategy()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyRabbitMqStrategy

public LegacyRabbitMqStrategy()
Method Detail

setExclusive

public void setExclusive(org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer container,
                         boolean exclusive)
Description copied from interface: RabbitMqStrategy
Define exclusive mode on the underlying container

Specified by:
setExclusive in interface RabbitMqStrategy
Parameters:
container - The container to set exclusive mode on
exclusive - Whether to enable or disable exclusive mode

createContainer

public org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer createContainer()
Description copied from interface: RabbitMqStrategy
Create a new instance of the container

Specified by:
createContainer in interface RabbitMqStrategy
Returns:
a new instance of the container


Copyright © 2010-2016. All Rights Reserved.