From 0276043928261aac3181382a41161085b91ea12b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 2 Mar 2020 11:48:54 +0300 Subject: XMPP: ExecutorService -> Executor --- src/main/java/com/juick/server/XMPPManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/com/juick/server/XMPPManager.java b/src/main/java/com/juick/server/XMPPManager.java index 96572d01..4bee2d63 100644 --- a/src/main/java/com/juick/server/XMPPManager.java +++ b/src/main/java/com/juick/server/XMPPManager.java @@ -80,7 +80,7 @@ import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; -import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executor; /** * @author ugnich @@ -114,7 +114,7 @@ public class XMPPManager implements NotificationListener { @Inject private PMQueriesService pmQueriesService; @Inject - private ExecutorService executorService; + private Executor taskExecutor; @Value("${service_user:juick}") private String serviceUsername; @Inject @@ -259,7 +259,7 @@ public class XMPPManager implements NotificationListener { xmpp.addInboundPresenceListener(event -> { incomingPresence(event.getPresence()); }); - executorService.submit(() -> { + taskExecutor.execute(() -> { try { xmpp.connect(); } catch (XmppException e) { -- cgit v1.2.3