aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-03-02 11:48:54 +0300
committerGravatar Vitaly Takmazov2020-03-02 11:48:54 +0300
commit0276043928261aac3181382a41161085b91ea12b (patch)
tree3b295cba763961d5eac92d74b213d26d9834a36c /src/main/java/com
parent06e420b3905ed27aea311c4811a84aba5106d325 (diff)
XMPP: ExecutorService -> Executor
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/server/XMPPManager.java6
1 files changed, 3 insertions, 3 deletions
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) {