org.apache.qpid.transport
Class QueueDeclare

java.lang.Object
  extended by org.apache.qpid.transport.Struct
      extended by org.apache.qpid.transport.Method
          extended by org.apache.qpid.transport.QueueDeclare
All Implemented Interfaces:
Encodable, ProtocolEvent

public final class QueueDeclare
extends Method


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.qpid.transport.Method
Method.CompletionListener
 
Field Summary
static int TYPE
           
 
Fields inherited from class org.apache.qpid.transport.Struct
dirty
 
Constructor Summary
QueueDeclare()
           
QueueDeclare(String queue, String alternateExchange, Map<String,Object> arguments, Option... _options)
           
 
Method Summary
 QueueDeclare alternateExchange(String value)
           
 QueueDeclare arguments(Map<String,Object> value)
           
 QueueDeclare autoDelete(boolean value)
           
 QueueDeclare clearAlternateExchange()
           
 QueueDeclare clearArguments()
           
 QueueDeclare clearAutoDelete()
           
 QueueDeclare clearDurable()
           
 QueueDeclare clearExclusive()
           
 QueueDeclare clearPassive()
           
 QueueDeclare clearQueue()
           
<C> void
dispatch(C context, MethodDelegate<C> delegate)
           
 QueueDeclare durable(boolean value)
           
 QueueDeclare exclusive(boolean value)
           
 String getAlternateExchange()
           
 Map<String,Object> getArguments()
           
 boolean getAutoDelete()
           
 boolean getDurable()
           
 byte getEncodedTrack()
           
 boolean getExclusive()
           
 Map<String,Object> getFields()
           
 int getPackWidth()
           
 boolean getPassive()
           
 String getQueue()
           
 int getSizeWidth()
           
 int getStructType()
           
 boolean hasAlternateExchange()
           
 boolean hasArguments()
           
 boolean hasAutoDelete()
           
 boolean hasDurable()
           
 boolean hasExclusive()
           
 boolean hasPassive()
           
 boolean hasPayload()
           
 boolean hasQueue()
           
 QueueDeclare passive(boolean value)
           
 QueueDeclare queue(String value)
           
 void read(Decoder dec)
          Decodes this encodable using the given decoder.
 QueueDeclare setAlternateExchange(String value)
           
 QueueDeclare setArguments(Map<String,Object> value)
           
 QueueDeclare setAutoDelete(boolean value)
           
 QueueDeclare setDurable(boolean value)
           
 QueueDeclare setExclusive(boolean value)
           
 QueueDeclare setPassive(boolean value)
           
 QueueDeclare setQueue(String value)
           
 void write(Encoder enc)
          Encodes this encodable using the given encoder.
 
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
 
Methods inherited from class org.apache.qpid.transport.Struct
getEncodedType, isDirty, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final int TYPE
See Also:
Constant Field Values
Constructor Detail

QueueDeclare

public QueueDeclare()

QueueDeclare

public QueueDeclare(String queue,
                    String alternateExchange,
                    Map<String,Object> arguments,
                    Option... _options)
Method Detail

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