Example usage for com.rabbitmq.client.impl ConnectionParams getSaslConfig

List of usage examples for com.rabbitmq.client.impl ConnectionParams getSaslConfig

Introduction

In this page you can find the example usage for com.rabbitmq.client.impl ConnectionParams getSaslConfig.

Prototype

public SaslConfig getSaslConfig() 

Source Link

Usage

From source file:de.htwk_leipzig.bis.connection.handshake.clientRewrite.Copyright.java

License:Mozilla Public License

/**
 * Construct a new connection/*from  w  w w .j  a  v  a2  s  .  com*/
 * 
 * @param params
 *            parameters for it
 */
public AMQConnection(ConnectionParams params, FrameHandler frameHandler) {
    checkPreconditions();
    this.username = params.getUsername();
    this.password = params.getPassword();
    this._frameHandler = frameHandler;
    this._virtualHost = params.getVirtualHost();
    this._exceptionHandler = params.getExceptionHandler();

    this._clientProperties = new HashMap<String, Object>(params.getClientProperties());
    this.requestedFrameMax = params.getRequestedFrameMax();
    this.requestedChannelMax = params.getRequestedChannelMax();
    this.requestedHeartbeat = params.getRequestedHeartbeat();
    this.shutdownTimeout = params.getShutdownTimeout();
    this.saslConfig = params.getSaslConfig();
    this.executor = params.getExecutor();
    this.threadFactory = params.getThreadFactory();

    this._channelManager = null;

    this._brokerInitiatedShutdown = false;

    this._inConnectionNegotiation = true; // we start out waiting for the
    // first protocol response
}