文档完善

This commit is contained in:
redkale
2024-08-13 19:09:27 +08:00
parent df8fd31e75
commit 3158f9265f
3 changed files with 133 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
/*
*/
package org.redkale.test.mq;
import java.util.List;
import org.redkale.annotation.Resource;
import org.redkale.mq.MessageManager;
import org.redkale.service.AbstractService;
/**
*
* @author zhangjx
*/
public class TestMessageManager extends AbstractService {
@Resource(name = "mymq")
private MessageManager manager;
// 创建topic
public void initTopic() {
manager.createTopic("topic_1", "topic_2").join();
}
// 创建topic
public void deleteTopic() {
manager.deleteTopic("topic_1", "topic_2").join();
}
// 查询topic
public void printTopic() {
List<String> topics = manager.queryTopic().join();
}
}