1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| package com.iailab.framework.mq.redis.core.message;
|
| import lombok.Data;
|
| import java.util.HashMap;
| import java.util.Map;
|
| /**
| * Redis 消息抽象基类
| *
| * @author iailab
| */
| @Data
| public abstract class AbstractRedisMessage {
|
| /**
| * 头
| */
| private Map<String, String> headers = new HashMap<>();
|
| public String getHeader(String key) {
| return headers.get(key);
| }
|
| public void addHeader(String key, String value) {
| headers.put(key, value);
| }
|
| }
|
|