Joram 5.2.1

org.objectweb.joram.mom.amqp.marshalling
Class AMQP.Exchange.Declare

java.lang.Object
  extended by org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
      extended by org.objectweb.joram.mom.amqp.marshalling.AMQP.Exchange.Declare
All Implemented Interfaces:
FrameBuilder
Enclosing class:
AMQP.Exchange

public static class AMQP.Exchange.Declare
extends AbstractMarshallingMethod

This method creates an exchange if it does not already exist, and if the exchange exists, verifies that it is of the correct and expected class.


Field Summary
 java.util.Map arguments
          A set of arguments for the declaration.
 boolean durable
          If set when creating a new exchange, the exchange will be marked as durable.
 java.lang.String exchange
           
static int INDEX
           
 boolean noWait
           
 boolean passive
          If set, the server will reply with Declare-Ok if the exchange already exists with the same name, and raise an error if not.
 int reserved1
           
 boolean reserved2
           
 boolean reserved3
           
 java.lang.String type
          Each exchange belongs to one of a set of exchange types implemented by the server.
 
Fields inherited from class org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
logger, NULL_METHOD_ID
 
Constructor Summary
AMQP.Exchange.Declare()
           
AMQP.Exchange.Declare(int reserved1, java.lang.String exchange, java.lang.String type, boolean passive, boolean durable, boolean reserved2, boolean reserved3, boolean noWait, java.util.Map arguments)
          This method creates an exchange if it does not already exist, and if the exchange exists, verifies that it is of the correct and expected class.
 
Method Summary
 int getClassId()
           
 java.lang.String getClassName()
           
 int getMethodId()
           
 java.lang.String getMethodName()
           
 void readFrom(AMQPInputStream in)
           
 java.lang.String toString()
           
 void writeTo(AMQPOutputStream out)
           
 
Methods inherited from class org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
read, toFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reserved1

public int reserved1

exchange

public java.lang.String exchange

type

public java.lang.String type
Each exchange belongs to one of a set of exchange types implemented by the server. The exchange types define the functionality of the exchange - i.e. how messages are routed through it. It is not valid or meaningful to attempt to change the type of an existing exchange.


passive

public boolean passive
If set, the server will reply with Declare-Ok if the exchange already exists with the same name, and raise an error if not. The client can use this to check whether an exchange exists without modifying the server state. When set, all other method fields except name and no-wait are ignored. A declare with both passive and no-wait has no effect. Arguments are compared for semantic equivalence.


durable

public boolean durable
If set when creating a new exchange, the exchange will be marked as durable. Durable exchanges remain active when a server restarts. Non-durable exchanges (transient exchanges) are purged if/when a server restarts.


reserved2

public boolean reserved2

reserved3

public boolean reserved3

noWait

public boolean noWait

arguments

public java.util.Map arguments
A set of arguments for the declaration. The syntax and semantics of these arguments depends on the server implementation.


INDEX

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

AMQP.Exchange.Declare

public AMQP.Exchange.Declare(int reserved1,
                             java.lang.String exchange,
                             java.lang.String type,
                             boolean passive,
                             boolean durable,
                             boolean reserved2,
                             boolean reserved3,
                             boolean noWait,
                             java.util.Map arguments)
This method creates an exchange if it does not already exist, and if the exchange exists, verifies that it is of the correct and expected class.


AMQP.Exchange.Declare

public AMQP.Exchange.Declare()
Method Detail

getMethodId

public int getMethodId()
Specified by:
getMethodId in class AbstractMarshallingMethod

getMethodName

public java.lang.String getMethodName()
Specified by:
getMethodName in class AbstractMarshallingMethod

getClassId

public int getClassId()
Specified by:
getClassId in class AbstractMarshallingMethod

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in class AbstractMarshallingMethod

readFrom

public void readFrom(AMQPInputStream in)
              throws java.io.IOException
Specified by:
readFrom in class AbstractMarshallingMethod
Throws:
java.io.IOException

writeTo

public void writeTo(AMQPOutputStream out)
             throws java.io.IOException
Specified by:
writeTo in class AbstractMarshallingMethod
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Joram 5.2.1

Copyright © 2005 Scalagent - All rights reserved