Package org.springframework.amqp.rabbit.core.RabbitTemplate

Examples of org.springframework.amqp.rabbit.core.RabbitTemplate.ReturnCallback


  @Test
  public void testPublisherReturns() throws Exception {
    final CountDownLatch latch = new CountDownLatch(1);
    final List<Message> returns = new ArrayList<Message>();
    templateWithReturnsEnabled.setReturnCallback(new ReturnCallback() {
      @Override
      public void returnedMessage(Message message, int replyCode,
          String replyText, String exchange, String routingKey) {
        returns.add(message);
        latch.countDown();
View Full Code Here


  @Test
  public void testPublisherReturnsWithMandatoryExpression() throws Exception {
    final CountDownLatch latch = new CountDownLatch(1);
    final List<Message> returns = new ArrayList<Message>();
    templateWithReturnsEnabled.setReturnCallback(new ReturnCallback() {
      @Override
      public void returnedMessage(Message message, int replyCode,
          String replyText, String exchange, String routingKey) {
        returns.add(message);
        latch.countDown();
View Full Code Here

TOP

Related Classes of org.springframework.amqp.rabbit.core.RabbitTemplate.ReturnCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.