public interface AsynchronousQueueSubscriber
QueueListener
进行消息消费,类似于spring activemq的MessageListener Container。一般建议在spirng的init-method中调用startSubscribe,
destroy-method中配置shutDown| 限定符和类型 | 方法和说明 |
|---|---|
void |
shutDown()
关闭订阅
|
void |
startSubscribe()
开启以线程,发送订阅指令后,自动接收消息,并调用
QueueListener
进行消费 |
void startSubscribe()
QueueListener
进行消费void shutDown()
Copyright © 2017. All rights reserved.