aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-04 23:02:06 +0300
committerGravatar Vitaly Takmazov2018-10-04 23:09:17 +0300
commit0559e1f5239d1f5496155eacd447bdad75e19006 (patch)
treef2f36e5a4b63129668740ba27a21291dd705449b /juick-server/src/main/java/com/juick/service
parent9f7150aa4419380bdc75d7c0edaa2c6ff7d86ba9 (diff)
Async event listeners
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 3174ff23..863bda04 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);
}