| Constructor and Description |
|---|
RabbitMQEngine()
默认构造
|
RabbitMQEngine(com.rabbitmq.client.ConnectionFactory factory)
构造
|
RabbitMQEngine(MQConfig config)
构造
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Consumer |
getConsumer()
获取消息消费者
|
Producer |
getProducer()
获取消息生产者
|
RabbitMQEngine |
init(com.rabbitmq.client.ConnectionFactory factory)
初始化
|
RabbitMQEngine |
init(MQConfig config)
初始化配置
|
public RabbitMQEngine()
public RabbitMQEngine(MQConfig config)
config - 配置public RabbitMQEngine(com.rabbitmq.client.ConnectionFactory factory)
factory - 连接工厂public RabbitMQEngine init(MQConfig config)
MQEnginepublic RabbitMQEngine init(com.rabbitmq.client.ConnectionFactory factory)
factory - 连接工厂public Producer getProducer()
MQEnginegetProducer in interface MQEnginepublic Consumer getConsumer()
MQEnginegetConsumer in interface MQEnginepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2025. All rights reserved.