Java com.rabbitmq.client ConnectionFactory fields, constructors, methods, implement or subclass

Example usage for Java com.rabbitmq.client ConnectionFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.rabbitmq.client ConnectionFactory.

The text is from its open source code.

Subclass

com.rabbitmq.client.ConnectionFactory has subclasses.
Click this link to see all its subclasses.

Implementation

com.rabbitmq.client.ConnectionFactory has the following implementations.
Click this link to see all its implementation.

Field

StringDEFAULT_USER
Default user name
StringDEFAULT_PASS
Default password
StringDEFAULT_VHOST
Default virtual host
intDEFAULT_CHANNEL_MAX
Default maximum channel number; 2047 because it's 2048 on the server side minus channel 0, which each connection uses for negotiation and error communication
intDEFAULT_FRAME_MAX
Default maximum frame size; zero means no limit
intDEFAULT_HEARTBEAT
Default heart-beat interval; 60 seconds
StringDEFAULT_HOST
The default host
intDEFAULT_AMQP_PORT
The default non-ssl port
intDEFAULT_AMQP_OVER_SSL_PORT
The default ssl port
intDEFAULT_CONNECTION_TIMEOUT
The default TCP connection timeout: 60 seconds
intDEFAULT_HANDSHAKE_TIMEOUT
The default AMQP 0-9-1 connection handshake timeout.

Constructor

Method

MapgetClientProperties()
Retrieve the currently-configured table of client properties that will be sent to the server during connection startup.
intgetConnectionTimeout()
Retrieve the TCP connection timeout.
StringgetHost()
StringgetPassword()
Retrieve the password.
intgetPort()
intgetRequestedHeartbeat()
Retrieve the requested heartbeat interval.
StringgetUsername()
Retrieve the user name.
StringgetVirtualHost()
Retrieve the virtual host.
booleanisSSL()
ConnectionnewConnection()
Create a new broker connection.
ConnectionnewConnection(Address[] addrs)
Create a new broker connection, picking the first available address from the list.
ConnectionnewConnection(AddressResolver addressResolver)
Create a new broker connection, picking the first available address from the list provided by the AddressResolver .
ConnectionnewConnection(List
addrs)
Create a new broker connection, picking the first available address from the list.
ConnectionnewConnection(String connectionName)
Create a new broker connection.
ConnectionnewConnection(ExecutorService executor)
Create a new broker connection.
ConnectionnewConnection(Address[] addrs, String clientProvidedName)
Create a new broker connection with a client-provided name, picking the first available address from the list.
ConnectionnewConnection(List
addrs, String clientProvidedName)
Create a new broker connection with a client-provided name, picking the first available address from the list.
ConnectionnewConnection(ExecutorService executor, Address[] addrs)
Create a new broker connection, picking the first available address from the list.
ConnectionnewConnection(ExecutorService executor, List
addrs)
Create a new broker connection, picking the first available address from the list.
ConnectionnewConnection(ExecutorService executor, AddressResolver addressResolver)
Create a new broker connection, picking the first available address from the list provided by the AddressResolver .
ConnectionnewConnection(ExecutorService executor, String connectionName)
Create a new broker connection.
voidsetAutomaticRecoveryEnabled(boolean automaticRecovery)
Enables or disables automatic connection recovery.
voidsetClientProperties(Map clientProperties)
Replace the table of client properties that will be sent to the server during subsequent connection startups.
voidsetConnectionTimeout(int timeout)
Set the TCP connection timeout.
voidsetExceptionHandler(ExceptionHandler exceptionHandler)
Set the exception handler to use for newly created connections.
voidsetHandshakeTimeout(int timeout)
Set the AMQP0-9-1 protocol handshake timeout.
voidsetHeartbeatExecutor(ScheduledExecutorService executor)
Set the executor to use to send heartbeat frames.
voidsetHost(String host)
voidsetMetricsCollector(MetricsCollector metricsCollector)
voidsetNetworkRecoveryInterval(int networkRecoveryInterval)
Sets connection recovery interval.
voidsetNetworkRecoveryInterval(long networkRecoveryInterval)
Sets connection recovery interval.
voidsetNioParams(NioParams nioParams)
Sets the parameters when using NIO.
voidsetPassword(String password)
Set the password.
voidsetPort(int port)
Set the target port.
voidsetRequestedChannelMax(int requestedChannelMax)
Set the requested maximum channel number
voidsetRequestedFrameMax(int requestedFrameMax)
Set the requested maximum frame size
voidsetRequestedHeartbeat(int requestedHeartbeat)
Set the requested heartbeat timeout.
voidsetSaslConfig(SaslConfig saslConfig)
Sets the sasl config to use when authenticating
voidsetSharedExecutor(ExecutorService executor)
Set the executor to use for consumer operation dispatch by default for newly created connections.
voidsetShutdownExecutor(ExecutorService executor)
Set the executor to use for connection shutdown.
voidsetShutdownTimeout(int shutdownTimeout)
Set the shutdown timeout.
voidsetSocketConfigurator(SocketConfigurator socketConfigurator)
Set the socket configurator.
voidsetSocketFactory(SocketFactory factory)
Set the socket factory used to create sockets for new connections.
voidsetThreadFactory(ThreadFactory threadFactory)
Set the thread factory used to instantiate new threads.
voidsetTopologyRecoveryEnabled(boolean topologyRecovery)
Enables or disables topology recovery
voidsetUri(URI uri)
Convenience method for setting the fields in an AMQP URI: host, port, username, password and virtual host.
voidsetUri(String uriString)
Convenience method for setting the fields in an AMQP URI: host, port, username, password and virtual host.
voidsetUsername(String username)
Set the user name.
voidsetVirtualHost(String virtualHost)
Set the virtual host.
voiduseNio()
Use non-blocking IO (NIO) for communication with the server.
voiduseSslProtocol(String protocol)
Convenience method for configuring TLS using the supplied protocol and a very trusting TrustManager.
voiduseSslProtocol(SSLContext context)
Sets up TLS with an initialized SSLContext .
voiduseSslProtocol()
Convenience method for configuring TLS using the default set of TLS protocols and a trusting TrustManager.