public class TDRpcClientPool extends Object
| 构造器和说明 |
|---|
TDRpcClientPool(String addres,
int port)
Constructor.
|
TDRpcClientPool(String addres,
int port,
int maxPoolSize)
Constructor.
|
TDRpcClientPool(String addres,
int port,
int maxPoolSize,
int timeOut)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
drop() |
String |
getAddres() |
TDRpcClient |
getClient() |
int |
getMaxPoolSize() |
int |
getPort() |
int |
getTimeOut() |
void |
returnClient(TDRpcClient client) |
public TDRpcClientPool(String addres, int port) throws IOException
addres - Stringport - intIOExceptionpublic TDRpcClientPool(String addres, int port, int maxPoolSize) throws IOException
addres - Stringport - intmaxPoolSize - intIOExceptionpublic TDRpcClientPool(String addres, int port, int maxPoolSize, int timeOut) throws IOException
addres - Stringport - intmaxPoolSize - inttimeOut - int, default 1000IOExceptionpublic TDRpcClient getClient()
public void returnClient(TDRpcClient client)
client - public void drop()
public int getMaxPoolSize()
public String getAddres()
public int getPort()
public int getTimeOut()
Copyright © 2020. All Rights Reserved.