aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/service')
-rw-r--r--juick-server/src/main/java/com/juick/service/activities/ActivityListener.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/service/activities/ActivityListener.java b/juick-server/src/main/java/com/juick/service/activities/ActivityListener.java
index 3174ff230..863bda040 100644
--- a/juick-server/src/main/java/com/juick/service/activities/ActivityListener.java
+++ b/juick-server/src/main/java/com/juick/service/activities/ActivityListener.java
@@ -1,14 +1,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);
}