Decreased EXECUTOR_POOL_SIZE value from 5 to 2.

This commit is contained in:
MobiusDevelopment 2023-08-08 01:34:03 +03:00
parent c4d1110cbe
commit 16d0614a05
31 changed files with 31 additions and 31 deletions

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));

View File

@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
public class SendThread<E extends NetClient> 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));