aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/service/component/NotificationListener.java
blob: 8092e258cca0a02f094dbb6398d098f229bff3cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.juick.service.component;

import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;

public interface NotificationListener {
    @Async
    @EventListener
    void processMessageEvent(MessageEvent messageEvent);
    @Async
    @EventListener
    void processSubscribeEvent(SubscribeEvent subscribeEvent);
    @Async
    @EventListener
    void processLikeEvent(LikeEvent likeEvent);
    @Async
    @EventListener
    void processPingEvent(PingEvent pingEvent);
    @Async
    @EventListener
    void processMessageReadEvent(MessageReadEvent messageReadEvent);
}