Examples of ReturnCallback


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

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

  @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
Copyright © 2018 www.massapi.com. 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.