aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/service/component/NotificationListener.java
blob: 38d0490a38ac911e3aa52c7a6d6d39014c50fcaf (plain) (blame)
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
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);
    @Async
    @EventListener
    void processTopEvent(TopEvent topEvent);
}