The setSocketConfigurator() method on com.rabbitmq.client.ConnectionFactory suggests that the configuration is applied after the socket has been opened, while the com.rabbitmq.client.SocketConfigurator interface seems to suggest the configuration is applied before the socket has been opened.