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

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

Introduction

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

Prototype

public int getShutdownTimeout() 

Source Link

Usage

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

License:Mozilla Public License

/**
 * Construct a new connection/*w  ww. j ava 2  s  .co  m*/
 * 
 * @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
}