Class CachingConnectionFactory

    • Constructor Detail

      • CachingConnectionFactory

        public CachingConnectionFactory()
        Create a new CachingConnectionFactory initializing the hostname to be the value returned from InetAddress.getLocalHost(), or "localhost" if getLocalHost() throws an exception.
      • CachingConnectionFactory

        public CachingConnectionFactory​(@Nullable
                                        String hostname)
        Create a new CachingConnectionFactory given a host name.
        Parameters:
        hostname - the host name to connect to
      • CachingConnectionFactory

        public CachingConnectionFactory​(int port)
        Create a new CachingConnectionFactory given a port on the hostname returned from InetAddress.getLocalHost(), or "localhost" if getLocalHost() throws an exception.
        Parameters:
        port - the port number
      • CachingConnectionFactory

        public CachingConnectionFactory​(@Nullable
                                        String hostNameArg,
                                        int port)
        Create a new CachingConnectionFactory given a host name and port.
        Parameters:
        hostNameArg - the host name to connect to
        port - the port number
      • CachingConnectionFactory

        public CachingConnectionFactory​(URI uri)
        Create a new CachingConnectionFactory given a URI.
        Parameters:
        uri - the amqp uri configuring the connection
        Since:
        1.5
      • CachingConnectionFactory

        public CachingConnectionFactory​(com.rabbitmq.client.ConnectionFactory rabbitConnectionFactory)
        Create a new CachingConnectionFactory for the given target ConnectionFactory.
        Parameters:
        rabbitConnectionFactory - the target ConnectionFactory