Examples of exchangeDeclarePassive()


Examples of com.rabbitmq.client.Channel.exchangeDeclarePassive()

        Channel channel = brokerSetup.getChannel();

        String routingKey = "test.key";
        brokerSetup.declareExchange(TEST_EXCHANGE, "topic");
        brokerSetup.declareAndBindQueue(TEST_QUEUE, TEST_EXCHANGE, routingKey);
        channel.exchangeDeclarePassive(TEST_EXCHANGE);
        channel.queueDeclarePassive(TEST_QUEUE);
       
        brokerSetup.tearDown();
       
        boolean exchangeExists = true;
View Full Code Here

Examples of com.rabbitmq.client.Channel.exchangeDeclarePassive()

       
        brokerSetup.tearDown();
       
        boolean exchangeExists = true;
        try {
            channel.exchangeDeclarePassive(TEST_EXCHANGE);
        } catch (Exception e) {
            exchangeExists = false;
        }
        boolean queueExists = true;
        try {
View Full Code Here

Examples of com.rabbitmq.client.Channel.exchangeDeclarePassive()

        final String clientId = (String) parameters[5];
        final Channel channel = AmqpOperationFactory.this.amqpDriver.getChannel (clientId);
        if (channel != null) {
          AMQP.Exchange.DeclareOk outcome = null;
          if (passive) {
            outcome = channel.exchangeDeclarePassive (exchange);
          } else {
            outcome = channel.exchangeDeclare (exchange, eType.getAmqpName (), durable, autoDelete, null);
          }
          succeeded = (outcome != null);
        }
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.