public abstract class RabbitConnectionFactoryConfig
extends com.rabbitmq.client.ConnectionFactory
Modifier and Type | Class and Description |
---|---|
static class |
RabbitConnectionFactoryConfig.ChannelPoolConfiguration
Configuration for the channel pool.
|
static class |
RabbitConnectionFactoryConfig.RpcConfiguration
Configuration for RPC.
|
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 and Description |
---|
RabbitConnectionFactoryConfig(java.lang.String name)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.util.List<com.rabbitmq.client.Address>> |
getAddresses() |
RabbitConnectionFactoryConfig.ChannelPoolConfiguration |
getChannelPool() |
java.time.Duration |
getConfirmTimeout() |
java.lang.String |
getConsumerExecutor() |
java.lang.String |
getName() |
RabbitConnectionFactoryConfig.RpcConfiguration |
getRpc() |
void |
setAddresses(java.util.List<com.rabbitmq.client.Address> addresses)
Sets the addresses to be passed to
ConnectionFactory.newConnection(List) . |
void |
setChannelPool(RabbitConnectionFactoryConfig.ChannelPoolConfiguration channelPool)
Sets the channel pool configuration.
|
void |
setConfirmTimeout(java.time.Duration confirmTimeout) |
void |
setConsumerExecutor(java.lang.String consumerExecutor)
Sets the name of which executor service consumers should be executed on.
|
void |
setRpc(RabbitConnectionFactoryConfig.RpcConfiguration rpc)
Sets the RPC configuration.
|
clone, computeDefaultTlsProtocol, createAddressResolver, createConnection, createFrameHandlerFactory, enableHostnameVerification, enableHostnameVerificationForBlockingIo, enableHostnameVerificationForNio, ensureUnsignedShort, getChannelRpcTimeout, getClientProperties, getConnectionTimeout, getExceptionHandler, getHandshakeTimeout, getHost, getMetricsCollector, getNetworkRecoveryInterval, getNioParams, getPassword, getPort, 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, newConnection, newConnection, newConnection, newConnection, params, portOrDefault, processUriQueryParameter, setAutomaticRecoveryEnabled, setChannelRpcTimeout, setChannelShouldCheckRpcResponseType, setClientProperties, setConnectionRecoveryTriggeringCondition, setConnectionTimeout, setCredentialsProvider, setCredentialsRefreshService, setErrorOnWriteListener, setExceptionHandler, setHandshakeTimeout, setHeartbeatExecutor, setHost, setMetricsCollector, setNetworkRecoveryInterval, setNetworkRecoveryInterval, setNioParams, setPassword, setPort, 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
public RabbitConnectionFactoryConfig(@Parameter java.lang.String name)
name
- The name of the configurationpublic java.lang.String getName()
public RabbitConnectionFactoryConfig.RpcConfiguration getRpc()
public void setRpc(@NonNull RabbitConnectionFactoryConfig.RpcConfiguration rpc)
rpc
- The RPC configurationpublic RabbitConnectionFactoryConfig.ChannelPoolConfiguration getChannelPool()
public void setChannelPool(@NonNull RabbitConnectionFactoryConfig.ChannelPoolConfiguration channelPool)
channelPool
- The channel pool configurationpublic java.util.Optional<java.util.List<com.rabbitmq.client.Address>> getAddresses()
public void setAddresses(@Nullable java.util.List<com.rabbitmq.client.Address> addresses)
ConnectionFactory.newConnection(List)
.addresses
- The list of addressespublic java.lang.String getConsumerExecutor()
public void setConsumerExecutor(@NonNull java.lang.String consumerExecutor)
consumerExecutor
- The consumer executor service name.public java.time.Duration getConfirmTimeout()
public void setConfirmTimeout(java.time.Duration confirmTimeout)
confirmTimeout
- How long to wait for a publisher confirm. Default value (5s).