Joram 5.2.1

org.objectweb.joram.mom.amqp.marshalling
Class AMQP.Basic.Publish

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

public static class AMQP.Basic.Publish
extends AbstractMarshallingMethod

This method publishes a message to a specific exchange. The message will be routed to queues as defined by the exchange configuration and distributed to any active consumers when the transaction, if any, is committed.


Field Summary
 java.lang.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
           
 java.lang.String routingKey
          Specifies the routing key for the message.
 
Fields inherited from class org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
logger, NULL_METHOD_ID
 
Constructor Summary
AMQP.Basic.Publish()
           
AMQP.Basic.Publish(int reserved1, java.lang.String exchange, java.lang.String routingKey, boolean mandatory, boolean immediate)
          This method publishes a message to a specific exchange.
 
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
Specifies the name of the exchange to publish to. The exchange name can be empty, meaning the default exchange. If the exchange name is specified, and that exchange does not exist, the server will raise a channel exception.


routingKey

public java.lang.String routingKey
Specifies the routing key for the message. The routing key is used for routing messages depending on the exchange configuration.


mandatory

public boolean mandatory
This flag tells the server how to react if the message cannot be routed to a queue. If this flag is set, the server will return an unroutable message with a Return method. If this flag is zero, the server silently drops the message.


immediate

public boolean immediate
This flag tells the server how to react if the message cannot be routed to a queue consumer immediately. If this flag is set, the server will return an undeliverable message with a Return method. If this flag is zero, the server will queue the message, but with no guarantee that it will ever be consumed.


INDEX

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

AMQP.Basic.Publish

public AMQP.Basic.Publish(int reserved1,
                          java.lang.String exchange,
                          java.lang.String routingKey,
                          boolean mandatory,
                          boolean immediate)
This method publishes a message to a specific exchange. The message will be routed to queues as defined by the exchange configuration and distributed to any active consumers when the transaction, if any, is committed.


AMQP.Basic.Publish

public AMQP.Basic.Publish()
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