public class RabbitQueueFactoryImpl extends Object implements RabbitQueueFactory, Closeable
| Modifier and Type | Field and Description |
|---|---|
private com.rabbitmq.client.Connection |
connection |
| Constructor and Description |
|---|
RabbitQueueFactoryImpl(com.rabbitmq.client.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
com.rabbitmq.client.Connection |
getConnection() |
public RabbitQueueFactoryImpl(com.rabbitmq.client.Connection connection)
public RabbitQueue createDefaultRabbitQueue(String name) throws IOException
RabbitQueueFactorycreateDefaultRabbitQueue in interface RabbitQueueFactoryname - 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 occurspublic com.rabbitmq.client.Connection getConnection()
getConnection in interface RabbitQueueFactorypublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017. All rights reserved.