Class RabbitConnectionFactoryConfig

    • Field Summary

      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class com.rabbitmq.client.ConnectionFactory

        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, 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RabbitConnectionFactoryConfig

        public RabbitConnectionFactoryConfig​(@Parameter
                                             java.lang.String name)
        Default constructor.
        Parameters:
        name - The name of the configuration
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        The name qualifier
      • getAddresses

        public java.util.Optional<java.util.List<com.rabbitmq.client.Address>> getAddresses()
        Returns:
        An optional list of addresses
      • setAddresses

        public void setAddresses​(@Nullable
                                 java.util.List<com.rabbitmq.client.Address> addresses)
        Sets the addresses to be passed to ConnectionFactory.newConnection(List).
        Parameters:
        addresses - The list of addresses
      • getConsumerExecutor

        public java.lang.String getConsumerExecutor()
        Returns:
        The executor service name that consumers should be executed on
      • setConsumerExecutor

        public void setConsumerExecutor​(@NonNull
                                        java.lang.String consumerExecutor)
        Sets the name of which executor service consumers should be executed on. Default "consumer".
        Parameters:
        consumerExecutor - The consumer executor service name.
      • getConfirmTimeout

        public java.time.Duration getConfirmTimeout()
        Returns:
        How long to wait for a publisher confirm
      • setConfirmTimeout

        public void setConfirmTimeout​(java.time.Duration confirmTimeout)
        Parameters:
        confirmTimeout - How long to wait for a publisher confirm. Default value (5s).