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 35a64043e..bf47eaf0d 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -32,7 +32,6 @@ import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.CopyOnWriteArraySet; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.ThreadPoolExecutor; @@ -247,46 +246,12 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { private final ScheduledExecutorService removeCallbacksService = Executors.newSingleThreadScheduledExecutor( new SmackExecutorThreadFactory(connectionCounterValue, "Remove Callbacks")); - private static int concurrencyLevel = Runtime.getRuntime().availableProcessors() + 1; - /** - * Set the concurrency level used by newly created connections. - *
- * The concurrency level determines the maximum pool size of the executor service that is used to e.g. invoke - * callbacks and IQ request handlers. - *
- *
- * The default value is Runtime.getRuntime().availableProcessors() + 1
. Note that the number of
- * available processors may change at runtime. So you may need to adjust it to your enviornment, although in most
- * cases this should not be necessary.
- *