Class AMQP.Basic.GetOk
- java.lang.Object
-
- org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
-
- org.ow2.joram.mom.amqp.marshalling.AMQP.Basic.GetOk
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AMQP.Basic
public static class AMQP.Basic.GetOk extends AbstractMarshallingMethod
This method delivers a message to the client following a get method. A message delivered by 'get-ok' must be acknowledged unless the no-ack option was set in the get method.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description longdeliveryTagStringexchangeSpecifies the name of the exchange that the message was originally published to.static intINDEXintmessageCountbooleanredeliveredStringroutingKeySpecifies the routing key name specified when the message was published.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
-
deliveryTag
public long deliveryTag
-
redelivered
public boolean redelivered
-
exchange
public String exchange
Specifies the name of the exchange that the message was originally published to. If empty, the message was published to the default exchange.
-
routingKey
public String routingKey
Specifies the routing key name specified when the message was published.
-
messageCount
public int messageCount
-
INDEX
public static final int INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetOk
public GetOk(long deliveryTag, boolean redelivered, String exchange, String routingKey, int messageCount)This method delivers a message to the client following a get method. A message delivered by 'get-ok' must be acknowledged unless the no-ack option was set in the get method.
-
GetOk
public GetOk()
-
-
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
-
-