From 0559e1f5239d1f5496155eacd447bdad75e19006 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 4 Oct 2018 23:02:06 +0300 Subject: Async event listeners --- .../src/main/java/com/juick/service/activities/ActivityListener.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'juick-server/src/main/java/com/juick/service') 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); } -- cgit v1.2.3