Decreased EXECUTOR_POOL_SIZE value from 5 to 2.
This commit is contained in:
parent
c4d1110cbe
commit
16d0614a05
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
@ -17,7 +17,7 @@ import org.l2jmobius.commons.threads.ThreadProvider;
|
|||||||
public class SendThread<E extends NetClient> implements Runnable
|
public class SendThread<E extends NetClient> implements Runnable
|
||||||
{
|
{
|
||||||
// The core pool size for the ThreadPoolExecutor.
|
// 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.
|
// 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));
|
private final ThreadPoolExecutor _executor = new ThreadPoolExecutor(EXECUTOR_POOL_SIZE, Integer.MAX_VALUE, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>(), new ThreadProvider("SendThread Executor", Thread.MAX_PRIORITY));
|
||||||
|
Loading…
Reference in New Issue
Block a user