public class BrpcThreadPoolManager extends Object
| Constructor and Description |
|---|
BrpcThreadPoolManager() |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.channel.EventLoopGroup |
createClientIoThreadPool(int threadNum,
String namePrefix,
int ioEventType) |
static BrpcThreadPoolManager |
getInstance() |
io.netty.channel.EventLoopGroup |
getOrCreateClientIoThreadPool(String serviceName,
boolean isSharing,
int threadNum,
int ioEventType) |
ThreadPool |
getOrCreateClientWorkThreadPool(String serviceName,
boolean isSharing,
int threadNum) |
protected String |
internalServiceName(String serviceName) |
void |
stopAll() |
void |
stopServiceThreadPool(String serviceName) |
public static BrpcThreadPoolManager getInstance()
public io.netty.channel.EventLoopGroup getOrCreateClientIoThreadPool(String serviceName, boolean isSharing, int threadNum, int ioEventType)
protected io.netty.channel.EventLoopGroup createClientIoThreadPool(int threadNum,
String namePrefix,
int ioEventType)
public ThreadPool getOrCreateClientWorkThreadPool(String serviceName, boolean isSharing, int threadNum)
public void stopAll()
public void stopServiceThreadPool(String serviceName)
Copyright © 2022 Baidu, Inc.. All rights reserved.