xiangpei
8 天以前 cc1bab39263e90069ccef7139f71b2a4061780d1
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
30
31
32
package cn.lili.common.event;
 
import lombok.Getter;
import org.springframework.context.ApplicationEvent;
 
/**
 * 事务提交后发生mq事件
 *
 * @author paulG
 * @since 2022/1/19
 **/
public class TransactionCommitSendMQEvent extends ApplicationEvent {
 
    private static final long serialVersionUID = 5885956821347953071L;
 
 
    @Getter
    private final String topic;
 
    @Getter
    private final String tag;
 
    @Getter
    private final Object message;
 
    public TransactionCommitSendMQEvent(Object source, String topic, String tag, Object message) {
        super(source);
        this.topic = topic;
        this.tag = tag;
        this.message = message;
    }
}