chore[field]: field visibility

This commit is contained in:
godotg
2024-01-06 16:16:07 +08:00
parent 81e161d2b9
commit 0e4c66dbe5
3 changed files with 3 additions and 3 deletions
@@ -45,7 +45,7 @@ public abstract class EventBus {
* EN: The size of the thread pool. Event's thread pool is often used to do time-consuming operations, so set it a little bigger
* CN: 线程池的大小. event的线程池经常用来做一些耗时的操作,所以要设置大一点
*/
public static final int EXECUTORS_SIZE = Runtime.getRuntime().availableProcessors() * 2;
private static final int EXECUTORS_SIZE = Runtime.getRuntime().availableProcessors() * 2;
private static final ExecutorService[] executors = new ExecutorService[EXECUTORS_SIZE];
@@ -44,7 +44,7 @@ public final class TaskBus {
// EN: The size of the thread pool can also be specified through the provider thread configuration
// CN: 线程池的大小,也可以通过provider thread配置指定
public static final int EXECUTOR_SIZE;
private static final int EXECUTOR_SIZE;
/**
* EN: Use different thread pools to achieve isolation between thread pools without affecting each other
@@ -27,7 +27,7 @@ import java.util.concurrent.CountDownLatch;
@Ignore
public class SignalBridgeTest {
private final int executorSize = EventBus.EXECUTORS_SIZE;
private final int executorSize = Runtime.getRuntime().availableProcessors() * 2;
private final int count = 100_0000;
private final int totalIndex = 10;