org.apache.qpid.transport
Class QueueDeclare
java.lang.Object
org.apache.qpid.transport.Struct
org.apache.qpid.transport.Method
org.apache.qpid.transport.QueueDeclare
- All Implemented Interfaces:
- Encodable, ProtocolEvent
public final class QueueDeclare
- extends Method
Field Summary |
static int |
TYPE
|
Fields inherited from class org.apache.qpid.transport.Struct |
dirty |
Methods inherited from class org.apache.qpid.transport.Method |
complete, create, delegate, getBody, getBodySize, getChannel, getHeader, getId, hasCompletionListener, idSet, isBatch, isSync, isUnreliable, setBatch, setBody, setChannel, setCompletionListener, setHeader, setId, setSync, setUnreliable, toString |
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
QueueDeclare
public QueueDeclare()
QueueDeclare
public QueueDeclare(String queue,
String alternateExchange,
Map<String,Object> arguments,
Option... _options)
getStructType
public final int getStructType()
- Specified by:
getStructType
in class Struct
getSizeWidth
public final int getSizeWidth()
- Specified by:
getSizeWidth
in class Struct
getPackWidth
public final int getPackWidth()
- Specified by:
getPackWidth
in class Struct
hasPayload
public final boolean hasPayload()
- Specified by:
hasPayload
in class Method
getEncodedTrack
public final byte getEncodedTrack()
- Specified by:
getEncodedTrack
in interface ProtocolEvent
- Specified by:
getEncodedTrack
in class Method
dispatch
public <C> void dispatch(C context,
MethodDelegate<C> delegate)
- Specified by:
dispatch
in class Method
hasQueue
public final boolean hasQueue()
clearQueue
public final QueueDeclare clearQueue()
getQueue
public final String getQueue()
setQueue
public final QueueDeclare setQueue(String value)
queue
public final QueueDeclare queue(String value)
hasAlternateExchange
public final boolean hasAlternateExchange()
clearAlternateExchange
public final QueueDeclare clearAlternateExchange()
getAlternateExchange
public final String getAlternateExchange()
setAlternateExchange
public final QueueDeclare setAlternateExchange(String value)
alternateExchange
public final QueueDeclare alternateExchange(String value)
hasPassive
public final boolean hasPassive()
clearPassive
public final QueueDeclare clearPassive()
getPassive
public final boolean getPassive()
setPassive
public final QueueDeclare setPassive(boolean value)
passive
public final QueueDeclare passive(boolean value)
hasDurable
public final boolean hasDurable()
clearDurable
public final QueueDeclare clearDurable()
getDurable
public final boolean getDurable()
setDurable
public final QueueDeclare setDurable(boolean value)
durable
public final QueueDeclare durable(boolean value)
hasExclusive
public final boolean hasExclusive()
clearExclusive
public final QueueDeclare clearExclusive()
getExclusive
public final boolean getExclusive()
setExclusive
public final QueueDeclare setExclusive(boolean value)
exclusive
public final QueueDeclare exclusive(boolean value)
hasAutoDelete
public final boolean hasAutoDelete()
clearAutoDelete
public final QueueDeclare clearAutoDelete()
getAutoDelete
public final boolean getAutoDelete()
setAutoDelete
public final QueueDeclare setAutoDelete(boolean value)
autoDelete
public final QueueDeclare autoDelete(boolean value)
hasArguments
public final boolean hasArguments()
clearArguments
public final QueueDeclare clearArguments()
getArguments
public final Map<String,Object> getArguments()
setArguments
public final QueueDeclare setArguments(Map<String,Object> value)
arguments
public final QueueDeclare arguments(Map<String,Object> value)
write
public void write(Encoder enc)
- Description copied from interface:
Encodable
- Encodes this encodable using the given encoder.
- Specified by:
write
in interface Encodable
- Specified by:
write
in class Struct
- Parameters:
enc
- the encoder.
read
public void read(Decoder dec)
- Description copied from interface:
Encodable
- Decodes this encodable using the given decoder.
- Specified by:
read
in interface Encodable
- Specified by:
read
in class Struct
- Parameters:
dec
- the decoder.
getFields
public Map<String,Object> getFields()
- Specified by:
getFields
in class Struct
Licensed to the Apache Software Foundation