Example usage for com.rabbitmq.client ConnectionFactory DEFAULT_HANDSHAKE_TIMEOUT

List of usage examples for com.rabbitmq.client ConnectionFactory DEFAULT_HANDSHAKE_TIMEOUT

Introduction

In this page you can find the example usage for com.rabbitmq.client ConnectionFactory DEFAULT_HANDSHAKE_TIMEOUT.

Prototype

int DEFAULT_HANDSHAKE_TIMEOUT

To view the source code for com.rabbitmq.client ConnectionFactory DEFAULT_HANDSHAKE_TIMEOUT.

Click Source Link

Document

The default AMQP 0-9-1 connection handshake timeout.

Usage

From source file:org.thingsboard.rule.engine.rabbitmq.TbRabbitMqNodeConfiguration.java

License:Apache License

@Override
public TbRabbitMqNodeConfiguration defaultConfiguration() {
    TbRabbitMqNodeConfiguration configuration = new TbRabbitMqNodeConfiguration();
    configuration.setExchangeNamePattern("");
    configuration.setRoutingKeyPattern("");
    configuration.setMessageProperties(null);
    configuration.setHost(ConnectionFactory.DEFAULT_HOST);
    configuration.setPort(ConnectionFactory.DEFAULT_AMQP_PORT);
    configuration.setVirtualHost(ConnectionFactory.DEFAULT_VHOST);
    configuration.setUsername(ConnectionFactory.DEFAULT_USER);
    configuration.setPassword(ConnectionFactory.DEFAULT_PASS);
    configuration.setAutomaticRecoveryEnabled(false);
    configuration.setConnectionTimeout(ConnectionFactory.DEFAULT_CONNECTION_TIMEOUT);
    configuration.setHandshakeTimeout(ConnectionFactory.DEFAULT_HANDSHAKE_TIMEOUT);
    configuration.setClientProperties(Collections.emptyMap());
    return configuration;
}