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() |
com.rabbitmq.client.Channel |
getSingleChannel() |
void |
setSingleChannel(com.rabbitmq.client.Channel channel) |
public com.rabbitmq.client.Channel createChannel()
public com.rabbitmq.client.Channel getSingleChannel()
public void setSingleChannel(com.rabbitmq.client.Channel channel)
public 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 © 2024 MuleSoft, Inc.. All rights reserved.