public class RpcClientOptions extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
EPOLL_EVENT_GROUP
The Constant EPOLL_EVENT_GROUP.
|
static int |
POLL_EVENT_GROUP
The Constant POLL_EVENT_GROUP.
|
| 构造器和说明 |
|---|
RpcClientOptions()
Instantiates a new rpc client options.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
copyFrom(RpcClientOptions options)
Copy from.
|
int |
getChunkPackageTimeout()
Gets the time out set for chunk package wait in ms.
|
long |
getChunkSize()
Gets the chunk size.
|
int |
getConnectTimeout()
Gets the connect timeout.
|
int |
getIdleTimeout()
Gets the idle timeout.
|
int |
getIoEventGroupType()
Gets the io event group type.
|
int |
getMaxIdleSize()
Gets the max idle size.
|
int |
getMaxSize()
Gets the max size.
|
int |
getMaxTotal()
Gets the max total.
|
long |
getMaxWait()
Gets the max wait.
|
long |
getMinEvictableIdleTime()
Gets the min evictable idle time.
|
int |
getMinIdleSize()
Gets the min idle size.
|
int |
getOnceTalkTimeout()
Gets the once talk timeout.
|
int |
getReceiveBufferSize()
Gets the receive buffer size.
|
int |
getSendBufferSize()
Gets the send buffer size.
|
boolean |
getTcpNoDelay()
Gets the tcp no delay.
|
int |
getThreadPoolSize()
已过时。
please use
getMaxTotal() instead |
int |
getWorkGroupThreadSize()
Gets the work group thread size.
|
boolean |
isIncludeRemoteServerInfoOnError()
Checks if is include remote server info on error.
|
boolean |
isInnerResuePool()
Checks if is inner resue pool.
|
boolean |
isJmxEnabled()
Checks if is jmx enabled.
|
boolean |
isKeepAlive()
Checks if is keep alive.
|
boolean |
isLifo()
Checks if is lifo.
|
boolean |
isReuseAddress()
Checks if is reuse address.
|
boolean |
isShareChannelPool()
Checks if is share channel pool.
|
boolean |
isShareThreadPoolUnderEachProxy()
Checks if is share thread pool under each proxy.
|
boolean |
isShortConnection()
Checks if is short connection.
|
boolean |
isTestOnBorrow()
Checks if is test on borrow.
|
boolean |
isTestOnReturn()
Checks if is test on return.
|
void |
setChunkPackageTimeout(int chunkPackageTimeout)
Sets the time out set for chunk package wait in ms.
|
void |
setChunkSize(long chunkSize)
Sets the chunk size.
|
void |
setConnectTimeout(int connectTimeout)
Sets the connect timeout.
|
void |
setIdleTimeout(int idleTimeout)
Sets the idle timeout.
|
void |
setIncludeRemoteServerInfoOnError(boolean includeRemoteServerInfoOnError)
Sets the include remote server info on error.
|
void |
setInnerResuePool(boolean innerResuePool)
Sets the inner resue pool.
|
void |
setIoEventGroupType(int ioEventGroupType)
Sets the io event group type.
|
void |
setJmxEnabled(boolean jmxEnabled)
Sets the jmx enabled.
|
void |
setKeepAlive(boolean keepAlive)
Sets the keep alive.
|
void |
setLifo(boolean lifo)
Sets the lifo.
|
void |
setMaxIdleSize(int maxIdleSize)
Sets the max idle size.
|
void |
setMaxSize(int maxSize)
Sets the max buffer size receive.
|
void |
setMaxTotoal(int maxTotal)
Sets the max totoal.
|
void |
setMaxWait(long maxWait)
Sets the max wait.
|
void |
setMinEvictableIdleTime(long minEvictableIdleTime)
Sets the min evictable idle time.
|
void |
setMinIdleSize(int minIdleSize)
Sets the min idle size.
|
void |
setOnceTalkTimeout(int onceTalkTimeout)
Sets the once talk timeout.
|
void |
setReceiveBufferSize(int receiveBufferSize)
Sets the receive buffer size.
|
void |
setReuseAddress(boolean reuseAddress)
Sets the reuse address.
|
void |
setSendBufferSize(int sendBufferSize)
Sets the send buffer size.
|
void |
setShareChannelPool(boolean shareChannelPool)
Sets the share channel pool.
|
void |
setShareThreadPoolUnderEachProxy(boolean shareThreadPoolUnderEachProxy)
Sets the share thread pool under each proxy.
|
void |
setShortConnection(boolean shortConnection)
Sets the short connection.
|
void |
setTcpNoDelay(boolean tcpNoDelay)
Sets the tcp no delay.
|
void |
setTestOnBorrow(boolean testOnBorrow)
Sets the test on borrow.
|
void |
setTestOnReturn(boolean testOnReturn)
Sets the test on return.
|
void |
setThreadPoolSize(int threadPoolSize)
已过时。
please use
setMaxTotoal(int) instead |
void |
setWorkGroupThreadSize(int workGroupThreadSize)
Sets the work group thread size.
|
public static final int POLL_EVENT_GROUP
public static final int EPOLL_EVENT_GROUP
public void setIncludeRemoteServerInfoOnError(boolean includeRemoteServerInfoOnError)
includeRemoteServerInfoOnError - the new include remote server info on errorpublic boolean isIncludeRemoteServerInfoOnError()
public void setShareChannelPool(boolean shareChannelPool)
shareChannelPool - the new share channel poolpublic boolean isShareChannelPool()
public void copyFrom(RpcClientOptions options)
options - the optionspublic void setWorkGroupThreadSize(int workGroupThreadSize)
workGroupThreadSize - the new work group thread sizepublic int getWorkGroupThreadSize()
public void setInnerResuePool(boolean innerResuePool)
innerResuePool - the new inner resue poolpublic boolean isInnerResuePool()
public int getChunkPackageTimeout()
public void setChunkPackageTimeout(int chunkPackageTimeout)
chunkPackageTimeout - the new time out set for chunk package wait in mspublic int getOnceTalkTimeout()
public void setOnceTalkTimeout(int onceTalkTimeout)
onceTalkTimeout - the new once talk timeoutpublic int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
connectTimeout - the new connect timeoutpublic int getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
sendBufferSize - the new send buffer sizepublic int getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
receiveBufferSize - the new receive buffer sizepublic boolean getTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay - the new tcp no delaypublic boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive - the new keep alivepublic int getIdleTimeout()
public void setIdleTimeout(int idleTimeout)
idleTimeout - the new idle timeoutpublic boolean isReuseAddress()
public void setReuseAddress(boolean reuseAddress)
reuseAddress - the new reuse addresspublic boolean isShortConnection()
public void setShortConnection(boolean shortConnection)
shortConnection - the new short connectionpublic int getThreadPoolSize()
getMaxTotal() insteadpublic int getMaxTotal()
public void setThreadPoolSize(int threadPoolSize)
setMaxTotoal(int) insteadthreadPoolSize - the new thread pool sizepublic void setMaxTotoal(int maxTotal)
maxTotal - the new max totoalpublic long getMinEvictableIdleTime()
public void setMinEvictableIdleTime(long minEvictableIdleTime)
minEvictableIdleTime - the new min evictable idle timepublic long getMaxWait()
public void setMaxWait(long maxWait)
maxWait - the new max waitpublic int getMaxIdleSize()
public void setMaxIdleSize(int maxIdleSize)
maxIdleSize - the new max idle sizepublic int getMinIdleSize()
public void setMinIdleSize(int minIdleSize)
minIdleSize - the new min idle sizepublic long getChunkSize()
public void setChunkSize(long chunkSize)
chunkSize - the new chunk sizepublic boolean isTestOnBorrow()
public void setTestOnBorrow(boolean testOnBorrow)
testOnBorrow - the new test on borrowpublic boolean isTestOnReturn()
public void setTestOnReturn(boolean testOnReturn)
testOnReturn - the new test on returnpublic boolean isShareThreadPoolUnderEachProxy()
public void setShareThreadPoolUnderEachProxy(boolean shareThreadPoolUnderEachProxy)
shareThreadPoolUnderEachProxy - the new share thread pool under each proxypublic boolean isJmxEnabled()
public void setJmxEnabled(boolean jmxEnabled)
jmxEnabled - the new jmx enabledpublic void setLifo(boolean lifo)
lifo - the new lifopublic boolean isLifo()
public int getMaxSize()
public void setMaxSize(int maxSize)
maxSize - the new max sizepublic int getIoEventGroupType()
public void setIoEventGroupType(int ioEventGroupType)
ioEventGroupType - the new io event group typeCopyright © 2022 Baidu, Inc.. All rights reserved.