| 程序包 | 说明 |
|---|---|
| cn.aradin.spring.core.thread |
| 限定符和类型 | 方法和说明 |
|---|---|
static GlobalThreadManager.ThreadPoolProxy |
GlobalThreadManager.getDownloadPool()
Get the thread pool for downloading
|
static GlobalThreadManager.ThreadPoolProxy |
GlobalThreadManager.getLongPool()
获取一个用于执行长耗时任务的线程池,避免和短耗时任务处在同一个队列 而阻塞了重要的短耗时的任务,通常用联网操作s
Get a thread pool for long-duration tasks
|
static GlobalThreadManager.ThreadPoolProxy |
GlobalThreadManager.getShortPool()
获取一个用于执行短耗时任务的线程池,避免因为和耗时长的任务处在同一个队列而长时间得不到执行,通常用来执行本地的IO/SQL
Get a thread pool for short-duration tasks
|
static GlobalThreadManager.ThreadPoolProxy |
GlobalThreadManager.getSinglePool()
Construct a one-thread pool for sync tasks
|
static GlobalThreadManager.ThreadPoolProxy |
GlobalThreadManager.getSinglePool(String name) |
Copyright © 2021. All rights reserved.