public class RabbitQueue extends Object implements Closeable
Channel and the name.| Modifier and Type | Field and Description |
|---|---|
com.rabbitmq.client.Channel |
channel
Channel of this queue.
|
String |
name
Name of this queue.
|
| Constructor and Description |
|---|
RabbitQueue(com.rabbitmq.client.Channel channel,
String name)
Constructor.
|
| Modifier and Type | Method and 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 Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017–2018. All rights reserved.