public static class AMQP.Basic.Publish extends AbstractMarshallingMethod
Modifier and Type | Field and Description |
---|---|
String |
exchange
Specifies the name of the exchange to publish to.
|
boolean |
immediate
This flag tells the server how to react if the message cannot be routed
to a queue consumer immediately.
|
static int |
INDEX |
boolean |
mandatory
This flag tells the server how to react if the message cannot be routed
to a queue.
|
int |
reserved1 |
String |
routingKey
Specifies the routing key for the message.
|
private static long |
serialVersionUID |
channelNumber, logger
Constructor and Description |
---|
Publish() |
Publish(int reserved1,
String exchange,
String routingKey,
boolean mandatory,
boolean immediate)
This method publishes a message to a specific exchange.
|
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 routingKey
public boolean mandatory
public boolean immediate
public static final int INDEX
public Publish(int reserved1, String exchange, String routingKey, boolean mandatory, boolean immediate)
public Publish()
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
readFrom
in class AbstractMarshallingMethod
IOException
public void writeTo(AMQPOutputStream out) throws IOException
writeTo
in class AbstractMarshallingMethod
IOException
Copyright © 2023 ScalAgent D.T.. All rights reserved.