diff options
author | Vitaly Takmazov | 2018-10-04 23:02:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-04 23:09:17 +0300 |
commit | 0559e1f5239d1f5496155eacd447bdad75e19006 (patch) | |
tree | f2f36e5a4b63129668740ba27a21291dd705449b /juick-common/src/main/java | |
parent | 9f7150aa4419380bdc75d7c0edaa2c6ff7d86ba9 (diff) |
Async event listeners
Diffstat (limited to 'juick-common/src/main/java')
-rw-r--r-- | juick-common/src/main/java/com/juick/service/component/NotificationListener.java | 6 |
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); } |