public interface RabbitQueueFactory extends Closeable
| Modifier and Type | Method and Description |
|---|---|
com.rabbitmq.client.Channel |
createChannel()
This method opens a channel using the established connection to RabbitMQ.
|
RabbitQueue |
createDefaultRabbitQueue(String name)
This method opens a channel using the established connection to RabbitMQ
and creates a new queue using the given name and the following
configuration:
The channel number is automatically derived from the connection.
|
RabbitQueue |
createDefaultRabbitQueue(String name,
com.rabbitmq.client.Channel channel)
This method uses the given channel and creates a new queue using the
given name and the following configuration:
The queue is not durable.
|
com.rabbitmq.client.Connection |
getConnection()
Returns the
Connection to the RabbitMQ broker used internally. |
RabbitQueue createDefaultRabbitQueue(String name) throws IOException
name - name of the queueRabbitQueue object comprising the Channel and the
name of the created queueIOException - if a communication problem during the creation of the channel
or the queue occursRabbitQueue createDefaultRabbitQueue(String name, com.rabbitmq.client.Channel channel) throws IOException
name - name of the queuechannel - the Channel that will be used to generate the queueRabbitQueue object comprising the Channel and the
name of the created queueIOException - if a communication problem during the creation of the channel
or the queue occurscom.rabbitmq.client.Channel createChannel()
throws IOException
ChannelIOException - if a communication problem during the creation of the channelcom.rabbitmq.client.Connection getConnection()
Connection to the RabbitMQ broker used internally.Connection to the RabbitMQ broker used internallyCopyright © 2017. All rights reserved.