aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/activities/ActivityListener.java
blob: 863bda0408c38568eb0ff1f5751d8912b98c2584 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.juick.service.activities;

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

public interface ActivityListener {
    @Async
    @EventListener
    void processFollowEvent(FollowEvent event);
    @Async
    @EventListener
    void undoFollowEvent(UndoFollowEvent event);
    @Async
    @EventListener
    void deleteUserEvent(DeleteUserEvent event);
    @Async
    @EventListener
    void deleteMessageEvent(DeleteMessageEvent event);
}