public class UserThreadPoolManager extends Object
| 构造器和说明 |
|---|
UserThreadPoolManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
static UserThreadPool |
getUserThread(String service)
得到用户线程池
|
static boolean |
hasUserThread()
是否有自定义线程池
|
static void |
registerUserThread(String service,
UserThreadPool userThreadPool)
给某个服务分配到独立的线程池
|
static void |
unRegisterUserThread(String service)
给某个服务取消分配到独立线程池
|
public static boolean hasUserThread()
public static void registerUserThread(String service, UserThreadPool userThreadPool)
service - 服务唯一名userThreadPool - 自定义线程池public static void unRegisterUserThread(String service)
service - 服务唯一名public static UserThreadPool getUserThread(String service)
service - 服务唯一名Copyright © 2008–2018 The Ant Financial. All rights reserved.