From 8c8ac546a9f8592cdd6f383bfd9cd8b6bf9a8f02 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 10 Jan 2015 00:51:57 +0100 Subject: [PATCH] Align thread names --- .../org/jivesoftware/smack/AbstractXMPPConnection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java index 5beb1143a..552936690 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -230,7 +230,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { * PacketListeners are invoked in the same order the stanzas arrived. */ private final ThreadPoolExecutor executorService = new ThreadPoolExecutor(1, 1, 0, TimeUnit.SECONDS, - new ArrayBlockingQueue(100), new SmackExecutorThreadFactory(connectionCounterValue, "IncomingNotifier")); + new ArrayBlockingQueue(100), new SmackExecutorThreadFactory(connectionCounterValue, "Incoming Processor")); /** * Creates an executor service just as {@link Executors#newCachedThreadPool()} would do, but with a keep alive time @@ -246,7 +246,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { new SynchronousQueue(), // workQueue new SmackExecutorThreadFactory( // threadFactory connectionCounterValue, - "CachedExecutor" + "Cached Executor" ) // @formatter:on ); @@ -257,7 +257,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { * is the same as the order of the incoming stanzas. Therefore we use a single threaded executor service. */ private final ExecutorService singleThreadedExecutorService = Executors.newSingleThreadExecutor(new SmackExecutorThreadFactory( - getConnectionCounter(), "Sync PacketListener Callback")); + getConnectionCounter(), "Single Threaded Executor")); private Roster roster; @@ -1375,7 +1375,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { } private final ScheduledExecutorService removeCallbacksService = new ScheduledThreadPoolExecutor(1, - new SmackExecutorThreadFactory(connectionCounterValue, "RemoveCallbacks")); + new SmackExecutorThreadFactory(connectionCounterValue, "Remove Callbacks")); @Override public void sendStanzaWithResponseCallback(Packet stanza, PacketFilter replyFilter,