Class CachingConnectionFactoryConfigurer

java.lang.Object
org.springframework.boot.autoconfigure.amqp.AbstractConnectionFactoryConfigurer<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
org.springframework.boot.autoconfigure.amqp.CachingConnectionFactoryConfigurer

public class CachingConnectionFactoryConfigurer extends AbstractConnectionFactoryConfigurer<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
Configures Rabbit CachingConnectionFactory with sensible defaults.
Since:
2.6.0
Author:
Chris Bono, Moritz Halbritter, Andy Wilkinson, Phillip Webb
  • Constructor Details

    • CachingConnectionFactoryConfigurer

      public CachingConnectionFactoryConfigurer(RabbitProperties properties)
      Creates a new configurer that will configure the connection factory using the given properties.
      Parameters:
      properties - the properties to use to configure the connection factory
    • CachingConnectionFactoryConfigurer

      public CachingConnectionFactoryConfigurer(RabbitProperties properties, RabbitConnectionDetails connectionDetails)
      Creates a new configurer that will configure the connection factory using the given properties and connectionDetails, with the latter taking priority.
      Parameters:
      properties - the properties to use to configure the connection factory
      connectionDetails - the connection details to use to configure the connection factory
      Since:
      3.1.0
  • Method Details

    • configure

      public void configure(org.springframework.amqp.rabbit.connection.CachingConnectionFactory connectionFactory, RabbitProperties rabbitProperties)
      Description copied from class: AbstractConnectionFactoryConfigurer
      Configures the given connectionFactory using the given rabbitProperties.
      Specified by:
      configure in class AbstractConnectionFactoryConfigurer<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
      Parameters:
      connectionFactory - connection factory to configure
      rabbitProperties - properties to use for the configuration