mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-21 22:24:31 +00:00
chore[field]: field visibility
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user