/** * Get the {@link ConnectionFactory} object associated with the only RabbitMQ service bound to the app. * * This is equivalent to the {@code <cloud:rabbit-connection-factory>} element. * * @return rabbit connection factory * @throws CloudException * if there are either 0 or more than 1 RabbitMQ services. */ @Override public ConnectionFactory rabbitConnectionFactory() { return rabbitConnectionFactory((RabbitConnectionFactoryConfig) null); }
/** * Get the {@link ConnectionFactory} object associated with the only RabbitMQ service bound to the app. * * This is equivalent to the {@code <cloud:rabbit-connection-factory>} element. * * @return rabbit connection factory * @throws CloudException * if there are either 0 or more than 1 RabbitMQ services. */ @Override public ConnectionFactory rabbitConnectionFactory() { return rabbitConnectionFactory((RabbitConnectionFactoryConfig) null); }
/** * Get the {@link ConnectionFactory} object for the specified RabbitMQ service. * * This is equivalent to the {@code <cloud:rabbit-connection-factory service-id="serviceId">} element. * * @param serviceId * the name of the service * @return rabbit connection factory * @throws CloudException * if the specified service doesn't exist */ @Override public ConnectionFactory rabbitConnectionFactory(String serviceId) { return rabbitConnectionFactory(serviceId, null); }
/** * Get the {@link ConnectionFactory} object for the specified RabbitMQ service. * * This is equivalent to the {@code <cloud:rabbit-connection-factory service-id="serviceId">} element. * * @param serviceId * the name of the service * @return rabbit connection factory * @throws CloudException * if the specified service doesn't exist */ @Override public ConnectionFactory rabbitConnectionFactory(String serviceId) { return rabbitConnectionFactory(serviceId, null); }