public static class AMQP.Exchange.Declare extends AbstractMarshallingMethod
Modifier and Type | Field and Description |
---|---|
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.
|
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 |
private static long |
serialVersionUID |
String |
type
Each exchange belongs to one of a set of exchange types implemented by
the server.
|
channelNumber, logger
Constructor and Description |
---|
AMQP.Exchange.Declare() |
AMQP.Exchange.Declare(int reserved1,
String exchange,
String type,
boolean passive,
boolean durable,
boolean reserved2,
boolean reserved3,
boolean noWait,
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getClassId() |
String |
getClassName() |
int |
getMethodId() |
String |
getMethodName() |
void |
readFrom(AMQPInputStream in) |
String |
toString() |
void |
writeTo(AMQPOutputStream out) |
read, toFrame
private static final long serialVersionUID
public int reserved1
public String exchange
public String type
public boolean passive
public boolean durable
public boolean reserved2
public boolean reserved3
public boolean noWait
public Map arguments
public static final int INDEX
public AMQP.Exchange.Declare(int reserved1, String exchange, String type, boolean passive, boolean durable, boolean reserved2, boolean reserved3, boolean noWait, Map arguments)
public AMQP.Exchange.Declare()
public int getMethodId()
getMethodId
in class AbstractMarshallingMethod
public String getMethodName()
getMethodName
in class AbstractMarshallingMethod
public int getClassId()
getClassId
in class AbstractMarshallingMethod
public String getClassName()
getClassName
in class AbstractMarshallingMethod
public void readFrom(AMQPInputStream in) throws IOException, SyntaxErrorException
readFrom
in class AbstractMarshallingMethod
IOException
SyntaxErrorException
public void writeTo(AMQPOutputStream out) throws IOException
writeTo
in class AbstractMarshallingMethod
IOException
Copyright © 2013 ScalAgent D.T.. All Rights Reserved.