Examples of AmqpExchangeType


Examples of eu.mosaic_cloud.platform.interop.common.amqp.AmqpExchangeType

        boolean succeeded = false;
        final String exchange = (String) parameters[0];
        final boolean durable = (Boolean) parameters[2];
        final boolean autoDelete = (Boolean) parameters[3];
        final boolean passive = (Boolean) parameters[4];
        final AmqpExchangeType eType = (AmqpExchangeType) parameters[1];
        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);
        }
        return succeeded;
      }
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.