public class DefaultAmqpMessageConsumer extends Object implements AmqpMessageConsumer
| Constructor and Description |
|---|
DefaultAmqpMessageConsumer(com.rabbitmq.client.Channel channel,
String queue,
long timeout,
InternalAckMode ackMode,
String consumerTag) |
| Modifier and Type | Method and Description |
|---|---|
AmqpMessage |
consume()
Consume message from an amqp queue
|
AmqpMessage |
consume(String correlationId)
Consume message from an amqp queue with a correlation Id.
|
public DefaultAmqpMessageConsumer(com.rabbitmq.client.Channel channel,
String queue,
long timeout,
InternalAckMode ackMode,
String consumerTag)
public AmqpMessage consume(String correlationId) throws IOException, InterruptedException
AmqpMessageConsumerconsume in interface AmqpMessageConsumerIOException - IOException occurred during the consumption.InterruptedException - Interruption occurred during the consumption.public AmqpMessage consume() throws IOException, InterruptedException
AmqpMessageConsumerconsume in interface AmqpMessageConsumerIOException - IOException occurred during the consumption.InterruptedException - Interruption occurred during the consumption.Copyright © 2023 MuleSoft, Inc.. All rights reserved.