public class AmqpConnection extends Object implements org.mule.runtime.api.lifecycle.Disposable
| Modifier and Type | Field and Description |
|---|---|
protected com.rabbitmq.client.Connection |
connection |
| Constructor and Description |
|---|
AmqpConnection(com.rabbitmq.client.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
com.rabbitmq.client.Channel |
createChannel() |
AmqpMessageConsumer |
createConsumer(com.rabbitmq.client.Channel channel,
String queue,
long timeout,
InternalAckMode ackMode) |
AmqpMessageConsumer |
createConsumer(com.rabbitmq.client.Channel channel,
String queue,
long timeout,
String consumerTag,
InternalAckMode ackMode)
Creates a new AMQP Message Consumer
|
void |
dispose() |
protected AmqpChannelManager |
getAmqpChannelManager() |
public com.rabbitmq.client.Channel createChannel()
throws IOException
IOExceptionpublic AmqpMessageConsumer createConsumer(com.rabbitmq.client.Channel channel, String queue, long timeout, InternalAckMode ackMode)
public AmqpMessageConsumer createConsumer(com.rabbitmq.client.Channel channel, String queue, long timeout, String consumerTag, InternalAckMode ackMode)
channel - the channel to use in the consumption of messages.queue - the queue to consume from.timeout - the timeout for the consumption operation.consumerTag - a client-generated consumer tag to establish contextackMode - internalAckModepublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposableprotected AmqpChannelManager getAmqpChannelManager()
Copyright © 2023 MuleSoft, Inc.. All rights reserved.