Package com.rabbitmq.client.impl
Class AMQImpl.Queue.DeclareOk
- java.lang.Object
-
- com.rabbitmq.client.impl.Method
-
- com.rabbitmq.client.impl.AMQImpl.Queue.DeclareOk
-
- All Implemented Interfaces:
AMQP.Queue.DeclareOk
,Method
- Enclosing class:
- AMQImpl.Queue
public static class AMQImpl.Queue.DeclareOk extends Method implements AMQP.Queue.DeclareOk
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.rabbitmq.client.AMQP.Queue.DeclareOk
AMQP.Queue.DeclareOk.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private int
consumerCount
static int
INDEX
private int
messageCount
private java.lang.String
queue
-
Constructor Summary
Constructors Constructor Description DeclareOk(MethodArgumentReader rdr)
DeclareOk(java.lang.String queue, int messageCount, int consumerCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendArgumentDebugStringTo(java.lang.StringBuilder acc)
Public API - debugging utilityboolean
equals(java.lang.Object o)
int
getConsumerCount()
int
getMessageCount()
java.lang.String
getQueue()
boolean
hasContent()
Tell if content is present.int
hashCode()
int
protocolClassId()
Retrieve the protocol class IDint
protocolMethodId()
Retrieve the protocol method IDjava.lang.String
protocolMethodName()
Retrieve the method namejava.lang.Object
visit(AMQImpl.MethodVisitor visitor)
Visitor support (double-dispatch mechanism).void
writeArgumentsTo(MethodArgumentWriter writer)
Private API - Autogenerated writer for this method.
-
-
-
Field Detail
-
INDEX
public static final int INDEX
- See Also:
- Constant Field Values
-
queue
private final java.lang.String queue
-
messageCount
private final int messageCount
-
consumerCount
private final int consumerCount
-
-
Constructor Detail
-
DeclareOk
public DeclareOk(java.lang.String queue, int messageCount, int consumerCount)
-
DeclareOk
public DeclareOk(MethodArgumentReader rdr) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getQueue
public java.lang.String getQueue()
- Specified by:
getQueue
in interfaceAMQP.Queue.DeclareOk
-
getMessageCount
public int getMessageCount()
- Specified by:
getMessageCount
in interfaceAMQP.Queue.DeclareOk
-
getConsumerCount
public int getConsumerCount()
- Specified by:
getConsumerCount
in interfaceAMQP.Queue.DeclareOk
-
protocolClassId
public int protocolClassId()
Description copied from class:Method
Retrieve the protocol class ID- Specified by:
protocolClassId
in interfaceMethod
- Specified by:
protocolClassId
in classMethod
- Returns:
- the AMQP protocol class ID of this Method
-
protocolMethodId
public int protocolMethodId()
Description copied from class:Method
Retrieve the protocol method ID- Specified by:
protocolMethodId
in interfaceMethod
- Specified by:
protocolMethodId
in classMethod
- Returns:
- the AMQP protocol method ID of this Method
-
protocolMethodName
public java.lang.String protocolMethodName()
Description copied from class:Method
Retrieve the method name- Specified by:
protocolMethodName
in interfaceMethod
- Specified by:
protocolMethodName
in classMethod
- Returns:
- the AMQP protocol method name of this Method
-
hasContent
public boolean hasContent()
Description copied from class:Method
Tell if content is present.- Specified by:
hasContent
in classMethod
- Returns:
- true if the wire-protocol for this method should involve a content header and body, or false if it should just involve a single method frame.
-
visit
public java.lang.Object visit(AMQImpl.MethodVisitor visitor) throws java.io.IOException
Description copied from class:Method
Visitor support (double-dispatch mechanism).
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
appendArgumentDebugStringTo
public void appendArgumentDebugStringTo(java.lang.StringBuilder acc)
Description copied from class:Method
Public API - debugging utility- Overrides:
appendArgumentDebugStringTo
in classMethod
- Parameters:
acc
- the buffer to append debug data to
-
writeArgumentsTo
public void writeArgumentsTo(MethodArgumentWriter writer) throws java.io.IOException
Description copied from class:Method
Private API - Autogenerated writer for this method.- Specified by:
writeArgumentsTo
in classMethod
- Parameters:
writer
- interface to an object to write the method arguments- Throws:
java.io.IOException
- if an error is encountered
-
-