Class AMQP.Queue.DeclareOk
- java.lang.Object
-
- org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
-
- org.ow2.joram.mom.amqp.marshalling.AMQP.Queue.DeclareOk
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AMQP.Queue
public static class AMQP.Queue.DeclareOk extends AbstractMarshallingMethod
This method confirms a Declare method and confirms the name of the queue, essential for automatically-named queues.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description intconsumerCountReports the number of active consumers for the queue.static intINDEXintmessageCountStringqueueReports the name of the queue.private static longserialVersionUID-
Fields inherited from class org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
channelNumber
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClassId()StringgetClassName()intgetMethodId()StringgetMethodName()voidreadFrom(AMQPInputStream in)StringtoString()voidwriteTo(AMQPOutputStream out)-
Methods inherited from class org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
read, toFrame
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
queue
public String queue
Reports the name of the queue. If the server generated a queue name, this field contains that name.
-
messageCount
public int messageCount
-
consumerCount
public int consumerCount
Reports the number of active consumers for the queue. Note that consumers can suspend activity (Channel.Flow) in which case they do not appear in this count.
-
INDEX
public static final int INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DeclareOk
public DeclareOk(String queue, int messageCount, int consumerCount)
This method confirms a Declare method and confirms the name of the queue, essential for automatically-named queues.
-
DeclareOk
public DeclareOk()
-
-
Method Detail
-
getMethodId
public int getMethodId()
- Specified by:
getMethodIdin classAbstractMarshallingMethod
-
getMethodName
public String getMethodName()
- Specified by:
getMethodNamein classAbstractMarshallingMethod
-
getClassId
public int getClassId()
- Specified by:
getClassIdin classAbstractMarshallingMethod
-
getClassName
public String getClassName()
- Specified by:
getClassNamein classAbstractMarshallingMethod
-
readFrom
public void readFrom(AMQPInputStream in) throws IOException
- Specified by:
readFromin classAbstractMarshallingMethod- Throws:
IOException
-
writeTo
public void writeTo(AMQPOutputStream out) throws IOException
- Specified by:
writeToin classAbstractMarshallingMethod- Throws:
IOException
-
-