Class AMQP.Queue.Delete
- java.lang.Object
-
- org.ow2.joram.mom.amqp.marshalling.AbstractMarshallingMethod
-
- org.ow2.joram.mom.amqp.marshalling.AMQP.Queue.Delete
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AMQP.Queue
public static class AMQP.Queue.Delete extends AbstractMarshallingMethod
This method deletes a queue. When a queue is deleted any pending messages are sent to a dead-letter queue if this is defined in the server configuration, and all consumers on the queue are cancelled.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description booleanifEmptyIf set, the server will only delete the queue if it has no messages.booleanifUnusedIf set, the server will only delete the queue if it has no consumers.static intINDEXbooleannoWaitStringqueueSpecifies the name of the queue to delete.intreserved1private 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
-
reserved1
public int reserved1
-
queue
public String queue
Specifies the name of the queue to delete.
-
ifUnused
public boolean ifUnused
If set, the server will only delete the queue if it has no consumers. If the queue has consumers the server does does not delete it but raises a channel exception instead.
-
ifEmpty
public boolean ifEmpty
If set, the server will only delete the queue if it has no messages.
-
noWait
public boolean noWait
-
INDEX
public static final int INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Delete
public Delete(int reserved1, String queue, boolean ifUnused, boolean ifEmpty, boolean noWait)This method deletes a queue. When a queue is deleted any pending messages are sent to a dead-letter queue if this is defined in the server configuration, and all consumers on the queue are cancelled.
-
Delete
public Delete()
-
-
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
-
-