From 16d0614a054fc7bd3c9b442483ef9fb63b0060be Mon Sep 17 00:00:00 2001 From: MobiusDevelopment Date: Tue, 8 Aug 2023 01:34:03 +0300 Subject: [PATCH] Decreased EXECUTOR_POOL_SIZE value from 5 to 2. --- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- .../java/org/l2jmobius/commons/network/SendThread.java | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_10.3_MasterClass/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_10.3_MasterClass/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_10.3_MasterClass/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_10.3_MasterClass/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_CT_0_Interlude/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_CT_0_Interlude/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_CT_0_Interlude/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_CT_0_Interlude/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_1.0/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_1.0/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_1.0/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_1.0/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_1.5_AgeOfSplendor/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_1.5_AgeOfSplendor/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_1.5_AgeOfSplendor/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_1.5_AgeOfSplendor/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_2.5_Zaken/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_2.5_Zaken/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_2.5_Zaken/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_2.5_Zaken/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_2.7_Antharas/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_2.7_Antharas/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_2.7_Antharas/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_2.7_Antharas/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_2.8_SevenSigns/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_2.8_SevenSigns/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_2.8_SevenSigns/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_2.8_SevenSigns/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_2.9.5_Saviors/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_2.9.5_Saviors/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_2.9.5_Saviors/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_2.9.5_Saviors/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_2.9_SecretOfEmpire/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_2.9_SecretOfEmpire/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_2.9_SecretOfEmpire/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_2.9_SecretOfEmpire/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY)); diff --git a/L2J_Mobius_Essence_6.3_Crusader/java/org/l2jmobius/commons/network/SendThread.java b/L2J_Mobius_Essence_6.3_Crusader/java/org/l2jmobius/commons/network/SendThread.java index 01d09df30d..0a1e618a10 100644 --- a/L2J_Mobius_Essence_6.3_Crusader/java/org/l2jmobius/commons/network/SendThread.java +++ b/L2J_Mobius_Essence_6.3_Crusader/java/org/l2jmobius/commons/network/SendThread.java @@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider; public class SendThread implements Runnable { // The core pool size for the ThreadPoolExecutor. - private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_POOL_SIZE = 2; // ThreadPoolExecutor used to execute tasks concurrently, avoiding delays caused by waiting for a single client. private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));