aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/component/NotificationListener.java
blob: 7ca88de81223634950f764eb370fec8de0e15cd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.juick.service.component;

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

public interface NotificationListener {
    @Async
    @EventListener
    void processSystemEvent(SystemEvent systemEvent);
    @Async
    @EventListener
    void processPingEvent(PingEvent pingEvent);
}