Package org.hobbit.core.data
Class RabbitQueue
java.lang.Object
org.hobbit.core.data.RabbitQueue
- All Implemented Interfaces:
Closeable,AutoCloseable
Simple structure representing the data of a RabbitMQ queue, i.e., the
Channel and the name.- Author:
- Michael Röder (roeder@informatik.uni-leipzig.de)
-
Field Details
-
channel
public final com.rabbitmq.client.Channel channelChannel of this queue. -
name
Name of this queue.
-
-
Constructor Details
-
RabbitQueue
Constructor.- Parameters:
channel- Channel of this queue.name- Name of this queue.
-
-
Method Details
-
getChannel
public com.rabbitmq.client.Channel getChannel() -
getName
-
messageCount
public long messageCount()Returns number of available messages or 0 if an error occurred.- Returns:
- the number of available messages.
-
toString
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-