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

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

Introduction

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

Prototype

public ExceptionHandler getExceptionHandler() 

Source Link

Usage

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

License:Mozilla Public License

/**
 * Construct a new connection/*w w  w  .ja v  a  2 s  .  c  o  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
}