提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.framework.mq.redis.core.stream; |
H |
2 |
|
|
3 |
import com.iailab.framework.mq.redis.core.message.AbstractRedisMessage; |
|
4 |
import com.fasterxml.jackson.annotation.JsonIgnore; |
|
5 |
|
|
6 |
/** |
|
7 |
* Redis Stream Message 抽象类 |
|
8 |
* |
|
9 |
* @author iailab |
|
10 |
*/ |
|
11 |
public abstract class AbstractRedisStreamMessage extends AbstractRedisMessage { |
|
12 |
|
|
13 |
/** |
|
14 |
* 获得 Redis Stream Key,默认使用类名 |
|
15 |
* |
|
16 |
* @return Channel |
|
17 |
*/ |
|
18 |
@JsonIgnore // 避免序列化 |
|
19 |
public String getStreamKey() { |
|
20 |
return getClass().getSimpleName(); |
|
21 |
} |
|
22 |
|
|
23 |
} |