org.apache.qpid.server.queue
Class NoConsumersException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.qpid.AMQException
              extended by org.apache.qpid.server.RequiredDeliveryException
                  extended by org.apache.qpid.server.queue.NoConsumersException
All Implemented Interfaces:
java.io.Serializable

public class NoConsumersException
extends RequiredDeliveryException

Signals that no consumers exist for a message at a given point in time. Used if a message has immediate=true and there are no consumers registered with the queue.

See Also:
Serialized Form

Constructor Summary
NoConsumersException(org.apache.qpid.framing.BasicPublishBody publishBody, org.apache.qpid.framing.ContentHeaderBody contentHeaderBody, java.util.List<org.apache.qpid.framing.ContentBody> contentBodies)
           
NoConsumersException(java.lang.String queue, org.apache.qpid.framing.BasicPublishBody publishBody, org.apache.qpid.framing.ContentHeaderBody contentHeaderBody, java.util.List<org.apache.qpid.framing.ContentBody> contentBodies)
           
 
Method Summary
 int getReplyCode()
           
 
Methods inherited from class org.apache.qpid.server.RequiredDeliveryException
getContentBodies, getContentHeaderBody, getErrorCode, getPublishBody, getReturnMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoConsumersException

public NoConsumersException(java.lang.String queue,
                            org.apache.qpid.framing.BasicPublishBody publishBody,
                            org.apache.qpid.framing.ContentHeaderBody contentHeaderBody,
                            java.util.List<org.apache.qpid.framing.ContentBody> contentBodies)

NoConsumersException

public NoConsumersException(org.apache.qpid.framing.BasicPublishBody publishBody,
                            org.apache.qpid.framing.ContentHeaderBody contentHeaderBody,
                            java.util.List<org.apache.qpid.framing.ContentBody> contentBodies)
Method Detail

getReplyCode

public int getReplyCode()
Specified by:
getReplyCode in class RequiredDeliveryException