mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-28 20:09:14 +08:00
This commit is contained in:
@@ -22,6 +22,9 @@ import org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently;
|
||||
import org.apache.rocketmq.common.message.MessageExt;
|
||||
|
||||
public class TimerMessageConsumer {
|
||||
|
||||
//Note: TimerMessage is a new feature in version 5.0, so be sure to upgrade RocketMQ to version 5.0+ before using it.
|
||||
|
||||
public static final String CONSUMER_GROUP = "TimerMessageConsumerGroup";
|
||||
public static final String DEFAULT_NAMESRVADDR = "127.0.0.1:9876";
|
||||
public static final String TOPIC = "TimerTopic";
|
||||
|
||||
@@ -23,6 +23,8 @@ import org.apache.rocketmq.common.message.Message;
|
||||
|
||||
public class TimerMessageProducer {
|
||||
|
||||
//Note: TimerMessage is a new feature in version 5.0, so be sure to upgrade RocketMQ to version 5.0+ before using it.
|
||||
|
||||
public static final String PRODUCER_GROUP = "TimerMessageProducerGroup";
|
||||
public static final String DEFAULT_NAMESRVADDR = "127.0.0.1:9876";
|
||||
public static final String TOPIC = "TimerTopic";
|
||||
|
||||
Reference in New Issue
Block a user