public class NettyClientConfig extends NettyBaseConfig
| 构造器和说明 |
|---|
NettyClientConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
enableNative()
Enable native boolean.
|
int |
getChannelMaxAllIdleSeconds()
Gets channel max all idle seconds.
|
int |
getChannelMaxReadIdleSeconds()
Gets channel max read idle seconds.
|
int |
getChannelMaxWriteIdleSeconds()
Gets client channel max idle time seconds.
|
static int |
getCheckAliveInternal()
Gets check alive internal.
|
static String |
getClientAppName()
Gets client app name.
|
Class<? extends io.netty.channel.Channel> |
getClientChannelClazz()
Gets client channel clazz.
|
String |
getClientSelectorThreadPrefix()
Get client selector thread prefix string.
|
int |
getClientSelectorThreadSize()
Gets client selector thread size.
|
int |
getClientSocketRcvBufSize()
Gets client socket rcv buf size.
|
int |
getClientSocketSndBufSize()
Gets client socket snd buf size.
|
static int |
getClientType()
Gets client type.
|
String |
getClientWorkerThreadPrefix()
Get client worker thread prefix string.
|
int |
getClientWorkerThreads()
Gets client worker threads.
|
int |
getConnectTimeoutMillis()
Gets connect timeout millis.
|
long |
getMaxAcquireConnMills()
Get max acquire conn mills long.
|
static int |
getMaxCheckAliveRetry()
Gets max check alive retry.
|
static int |
getMaxInactiveChannelCheck()
Gets max inactive channel check.
|
static int |
getMaxNotWriteableRetry()
Gets max not writeable retry.
|
int |
getMaxPoolActive()
Gets max pool active.
|
int |
getMinPoolIdle()
Gets min pool idle.
|
int |
getPendingConnSize()
Gets pending conn size.
|
int |
getPerHostMaxConn()
Gets per host max conn.
|
static int |
getPerHostMinConn()
Gets per host min conn.
|
String |
getRmDispatchThreadPrefix()
Gets rm dispatch thread prefix.
|
String |
getRpcDispatchThreadPrefix()
Get rpc dispatch thread prefix string.
|
static int |
getRpcRequestTimeout()
Gets rpc sendAsyncRequestWithResponse time out.
|
static String |
getSocketAddressStartChar()
Gets socket address start char.
|
String |
getTmDispatchThreadPrefix()
Gets tm dispatch thread prefix.
|
static String |
getVgroup()
Gets vgroup.
|
boolean |
isPoolLifo()
Is pool fifo boolean.
|
boolean |
isPoolTestBorrow()
Is pool test borrow boolean.
|
boolean |
isPoolTestReturn()
Is pool test return boolean.
|
boolean |
isUseConnPool()
Is use conn pool boolean.
|
static void |
setClientAppName(String clientAppName)
Sets client app name.
|
void |
setClientSocketRcvBufSize(int clientSocketRcvBufSize)
Sets client socket rcv buf size.
|
void |
setClientSocketSndBufSize(int clientSocketSndBufSize)
Sets client socket snd buf size.
|
static void |
setClientType(int clientType)
Sets client type.
|
void |
setClientWorkerThreads(int clientWorkerThreads)
Sets client worker threads.
|
void |
setConnectTimeoutMillis(int connectTimeoutMillis)
Sets connect timeout millis.
|
void |
setPendingConnSize(int pendingConnSize)
Sets pending conn size.
|
void |
setPerHostMaxConn(int perHostMaxConn)
Sets per host max conn.
|
static void |
setVgroup(String vgroup)
Sets vgroup.
|
public int getConnectTimeoutMillis()
public void setConnectTimeoutMillis(int connectTimeoutMillis)
connectTimeoutMillis - the connect timeout millispublic int getClientSocketSndBufSize()
public void setClientSocketSndBufSize(int clientSocketSndBufSize)
clientSocketSndBufSize - the client socket snd buf sizepublic int getClientSocketRcvBufSize()
public void setClientSocketRcvBufSize(int clientSocketRcvBufSize)
clientSocketRcvBufSize - the client socket rcv buf sizepublic int getChannelMaxWriteIdleSeconds()
public int getChannelMaxReadIdleSeconds()
public int getChannelMaxAllIdleSeconds()
public int getClientWorkerThreads()
public void setClientWorkerThreads(int clientWorkerThreads)
clientWorkerThreads - the client worker threadspublic Class<? extends io.netty.channel.Channel> getClientChannelClazz()
public boolean enableNative()
public int getPerHostMaxConn()
public void setPerHostMaxConn(int perHostMaxConn)
perHostMaxConn - the per host max connpublic int getPendingConnSize()
public void setPendingConnSize(int pendingConnSize)
pendingConnSize - the pending conn sizepublic static int getRpcRequestTimeout()
public boolean isUseConnPool()
public static String getVgroup()
public static void setVgroup(String vgroup)
vgroup - the vgrouppublic static String getClientAppName()
public static void setClientAppName(String clientAppName)
clientAppName - the client app namepublic static int getClientType()
public static void setClientType(int clientType)
clientType - the client typepublic static int getMaxInactiveChannelCheck()
public static int getMaxNotWriteableRetry()
public static int getPerHostMinConn()
public static int getMaxCheckAliveRetry()
public static int getCheckAliveInternal()
public static String getSocketAddressStartChar()
public int getClientSelectorThreadSize()
public long getMaxAcquireConnMills()
public String getClientSelectorThreadPrefix()
public String getClientWorkerThreadPrefix()
public String getRpcDispatchThreadPrefix()
public int getMaxPoolActive()
public int getMinPoolIdle()
public boolean isPoolTestBorrow()
public boolean isPoolTestReturn()
public boolean isPoolLifo()
public String getTmDispatchThreadPrefix()
public String getRmDispatchThreadPrefix()
Copyright © 2019 Seata. All rights reserved.