Package io.atleon.rabbitmq
Class AloConnectionFactory
- java.lang.Object
-
- com.rabbitmq.client.ConnectionFactory
-
- io.atleon.rabbitmq.AloConnectionFactory
-
- All Implemented Interfaces:
Cloneable
public class AloConnectionFactory extends com.rabbitmq.client.ConnectionFactoryConnectionFactory extension with support for multiple hosts and instantiation via properties. Configuration properties are the same ones defined byConnectionFactoryConfigurator
-
-
Field Summary
Fields Modifier and Type Field Description static StringDISABLEDstatic StringHOSTSComma-separated list of host[:port] pairsstatic StringSSLConfiguration for ssl.static StringVHOSTAlias forConnectionFactoryConfigurator.VIRTUAL_HOST-
Fields inherited from class com.rabbitmq.client.ConnectionFactory
DEFAULT_AMQP_OVER_SSL_PORT, DEFAULT_AMQP_PORT, DEFAULT_CHANNEL_MAX, DEFAULT_CHANNEL_RPC_TIMEOUT, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_FRAME_MAX, DEFAULT_HANDSHAKE_TIMEOUT, DEFAULT_HEARTBEAT, DEFAULT_HOST, DEFAULT_NETWORK_RECOVERY_INTERVAL, DEFAULT_PASS, DEFAULT_SHUTDOWN_TIMEOUT, DEFAULT_USER, DEFAULT_VHOST, DEFAULT_WORK_POOL_TIMEOUT, USE_DEFAULT_PORT
-
-
Constructor Summary
Constructors Constructor Description AloConnectionFactory(List<com.rabbitmq.client.Address> addresses)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AloConnectionFactoryfrom(Map<String,?> properties)StringgetHost()intgetPort()com.rabbitmq.client.ConnectionnewConnection()com.rabbitmq.client.ConnectionnewConnection(String connectionName)com.rabbitmq.client.ConnectionnewConnection(ExecutorService executor)com.rabbitmq.client.ConnectionnewConnection(ExecutorService executor, String connectionName)voidsetHost(String host)voidsetPort(int port)-
Methods inherited from class com.rabbitmq.client.ConnectionFactory
clone, computeDefaultTlsProtocol, createAddressResolver, createConnection, createFrameHandlerFactory, enableHostnameVerification, enableHostnameVerificationForBlockingIo, enableHostnameVerificationForNio, ensureUnsignedShort, getChannelRpcTimeout, getClientProperties, getConnectionTimeout, getExceptionHandler, getHandshakeTimeout, getMetricsCollector, getNetworkRecoveryInterval, getNioParams, getPassword, getRecoveryDelayHandler, getRequestedChannelMax, getRequestedFrameMax, getRequestedHeartbeat, getSaslConfig, getShutdownTimeout, getSocketConfigurator, getSocketFactory, getThreadFactory, getTopologyRecoveryExecutor, getUsername, getVirtualHost, getWorkPoolTimeout, isAutomaticRecoveryEnabled, isChannelShouldCheckRpcResponseType, isSSL, isTopologyRecoveryEnabled, load, load, load, load, load, load, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, params, portOrDefault, processUriQueryParameter, setAutomaticRecoveryEnabled, setChannelRpcTimeout, setChannelShouldCheckRpcResponseType, setClientProperties, setConnectionRecoveryTriggeringCondition, setConnectionTimeout, setCredentialsProvider, setCredentialsRefreshService, setErrorOnWriteListener, setExceptionHandler, setHandshakeTimeout, setHeartbeatExecutor, setMetricsCollector, setNetworkRecoveryInterval, setNetworkRecoveryInterval, setNioParams, setPassword, setRecoveredQueueNameSupplier, setRecoveryDelayHandler, setRequestedChannelMax, setRequestedFrameMax, setRequestedHeartbeat, setSaslConfig, setSharedExecutor, setShutdownExecutor, setShutdownTimeout, setSocketConfigurator, setSocketFactory, setSslContextFactory, setThreadFactory, setTopologyRecoveryEnabled, setTopologyRecoveryExecutor, setTopologyRecoveryFilter, setTopologyRecoveryRetryHandler, setTrafficListener, setUri, setUri, setUsername, setVirtualHost, setWorkPoolTimeout, useBlockingIo, useNio, useSslProtocol, useSslProtocol, useSslProtocol, useSslProtocol
-
-
-
-
Field Detail
-
HOSTS
public static final String HOSTS
Comma-separated list of host[:port] pairs- See Also:
- Constant Field Values
-
VHOST
public static final String VHOST
Alias forConnectionFactoryConfigurator.VIRTUAL_HOST- See Also:
- Constant Field Values
-
SSL
public static final String SSL
Configuration for ssl. Can be set toDISABLEDor protocol- See Also:
- Constant Field Values
-
DISABLED
public static final String DISABLED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AloConnectionFactory
public AloConnectionFactory(List<com.rabbitmq.client.Address> addresses)
-
-
Method Detail
-
from
public static AloConnectionFactory from(Map<String,?> properties)
-
newConnection
public com.rabbitmq.client.Connection newConnection() throws IOException, TimeoutException- Overrides:
newConnectionin classcom.rabbitmq.client.ConnectionFactory- Throws:
IOExceptionTimeoutException
-
newConnection
public com.rabbitmq.client.Connection newConnection(String connectionName) throws IOException, TimeoutException
- Overrides:
newConnectionin classcom.rabbitmq.client.ConnectionFactory- Throws:
IOExceptionTimeoutException
-
newConnection
public com.rabbitmq.client.Connection newConnection(ExecutorService executor) throws IOException, TimeoutException
- Overrides:
newConnectionin classcom.rabbitmq.client.ConnectionFactory- Throws:
IOExceptionTimeoutException
-
newConnection
public com.rabbitmq.client.Connection newConnection(ExecutorService executor, String connectionName) throws IOException, TimeoutException
- Overrides:
newConnectionin classcom.rabbitmq.client.ConnectionFactory- Throws:
IOExceptionTimeoutException
-
getHost
public String getHost()
- Overrides:
getHostin classcom.rabbitmq.client.ConnectionFactory
-
setHost
public void setHost(String host)
- Overrides:
setHostin classcom.rabbitmq.client.ConnectionFactory
-
getPort
public int getPort()
- Overrides:
getPortin classcom.rabbitmq.client.ConnectionFactory
-
setPort
public void setPort(int port)
- Overrides:
setPortin classcom.rabbitmq.client.ConnectionFactory
-
-