public final class ThreadUtil extends Object
| 构造器和说明 |
|---|
ThreadUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ThreadPoolExecutor |
getGroupExecutor(int groupPoolSize)
获取 tio group 线程池
|
static ThreadPoolExecutor |
getMqttExecutor(int poolSize)
获取 mqtt 业务线程池
|
static org.tio.utils.thread.pool.SynThreadPoolExecutor |
getTioExecutor(int tioPoolSize)
获取 getTioExecutor 线程池
|
static boolean |
sleep(long millis)
挂起当前线程
|
public static boolean sleep(long millis)
millis - 挂起的毫秒数public static ThreadPoolExecutor getGroupExecutor(int groupPoolSize)
groupPoolSize - group 线程大小public static org.tio.utils.thread.pool.SynThreadPoolExecutor getTioExecutor(int tioPoolSize)
tioPoolSize - tio 线程池大小public static ThreadPoolExecutor getMqttExecutor(int poolSize)
poolSize - 业务线程池大小Copyright © 2022. All rights reserved.