aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common/src/main/java/com')
-rw-r--r--juick-common/src/main/java/com/juick/service/component/NotificationListener.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/service/component/NotificationListener.java b/juick-common/src/main/java/com/juick/service/component/NotificationListener.java
index e4ccb13b..8092e258 100644
--- a/juick-common/src/main/java/com/juick/service/component/NotificationListener.java
+++ b/juick-common/src/main/java/com/juick/service/component/NotificationListener.java
@@ -1,16 +1,22 @@
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);
}