public class QueueingConsumer
extends com.rabbitmq.client.DefaultConsumer
implements com.rabbitmq.client.RpcServer.RpcConsumer
| Constructor and Description |
|---|
QueueingConsumer(com.rabbitmq.client.Channel ch) |
QueueingConsumer(com.rabbitmq.client.Channel ch,
BlockingQueue<com.rabbitmq.client.Delivery> q) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleCancel(String consumerTag) |
void |
handleDelivery(String consumerTag,
com.rabbitmq.client.Envelope envelope,
com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] body) |
void |
handleShutdownSignal(String consumerTag,
com.rabbitmq.client.ShutdownSignalException sig) |
com.rabbitmq.client.Delivery |
nextDelivery() |
com.rabbitmq.client.Delivery |
nextDelivery(long timeout) |
getChannel, getConsumerTag, handleCancelOk, handleConsumeOk, handleRecoverOkpublic QueueingConsumer(com.rabbitmq.client.Channel ch)
public QueueingConsumer(com.rabbitmq.client.Channel ch,
BlockingQueue<com.rabbitmq.client.Delivery> q)
public com.rabbitmq.client.Delivery nextDelivery()
throws InterruptedException,
com.rabbitmq.client.ShutdownSignalException,
com.rabbitmq.client.ConsumerCancelledException
nextDelivery in interface com.rabbitmq.client.RpcServer.RpcConsumerInterruptedExceptioncom.rabbitmq.client.ShutdownSignalExceptioncom.rabbitmq.client.ConsumerCancelledExceptionpublic com.rabbitmq.client.Delivery nextDelivery(long timeout)
throws InterruptedException,
com.rabbitmq.client.ShutdownSignalException,
com.rabbitmq.client.ConsumerCancelledException
InterruptedExceptioncom.rabbitmq.client.ShutdownSignalExceptioncom.rabbitmq.client.ConsumerCancelledExceptionpublic void handleShutdownSignal(String consumerTag, com.rabbitmq.client.ShutdownSignalException sig)
handleShutdownSignal in interface com.rabbitmq.client.ConsumerhandleShutdownSignal in class com.rabbitmq.client.DefaultConsumerpublic void handleCancel(String consumerTag) throws IOException
handleCancel in interface com.rabbitmq.client.ConsumerhandleCancel in class com.rabbitmq.client.DefaultConsumerIOExceptionpublic void handleDelivery(String consumerTag, com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body) throws IOException
handleDelivery in interface com.rabbitmq.client.ConsumerhandleDelivery in class com.rabbitmq.client.DefaultConsumerIOExceptionCopyright © 2025 MuleSoft, Inc.. All rights reserved.