Closeable, AutoCloseablepublic class RabbitQueue extends Object implements Closeable
Channel and the name.| Modifier and Type | Field | Description |
|---|---|---|
com.rabbitmq.client.Channel |
channel |
Channel of this queue.
|
String |
name |
Name of this queue.
|
| Constructor | Description |
|---|---|
RabbitQueue(com.rabbitmq.client.Channel channel,
String name) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
com.rabbitmq.client.Channel |
getChannel() |
|
String |
getName() |
|
long |
messageCount() |
Returns number of available messages or 0 if an error occurred.
|
String |
toString() |
public final com.rabbitmq.client.Channel channel
public final String name
public RabbitQueue(com.rabbitmq.client.Channel channel,
String name)
channel - Channel of this queue.name - Name of this queue.public com.rabbitmq.client.Channel getChannel()
public String getName()
public long messageCount()
public void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2017. All rights reserved.