public class NettyServerConfig extends NettyBaseConfig
| 限定符和类型 | 字段和说明 |
|---|---|
static io.netty.buffer.PooledByteBufAllocator |
DIRECT_BYTE_BUF_ALLOCATOR
The constant DIRECT_BYTE_BUF_ALLOCATOR.
|
Class<? extends io.netty.channel.ServerChannel> |
SERVER_CHANNEL_CLAZZ
The Server channel clazz.
|
| 构造器和说明 |
|---|
NettyServerConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
enableEpoll()
Enable epoll boolean.
|
String |
getBossThreadPrefix()
Get boss thread prefix string.
|
int |
getBossThreadSize()
Get boss thread size int.
|
int |
getChannelMaxReadIdleSeconds()
Gets channel max read idle seconds.
|
int |
getDefaultListenPort()
Gets listen port.
|
String |
getExecutorThreadPrefix()
Get executor thread prefix string.
|
static int |
getRpcRequestTimeout()
Gets rpc request timeout.
|
int |
getServerChannelMaxIdleTimeSeconds()
Gets server channel max idle time seconds.
|
int |
getServerSelectorThreads()
Gets server selector threads.
|
int |
getServerShutdownWaitTime()
Get the timeout seconds of shutdown.
|
int |
getServerSocketResvBufSize()
Gets server socket resv buf size.
|
int |
getServerSocketSendBufSize()
Gets server socket send buf size.
|
int |
getServerWorkerThreads()
Gets server worker threads.
|
int |
getSoBackLogSize()
Gets so back log size.
|
String |
getWorkerThreadPrefix()
Get worker thread prefix string.
|
int |
getWriteBufferHighWaterMark()
Gets write buffer high water mark.
|
int |
getWriteBufferLowWaterMark()
Gets write buffer low water mark.
|
boolean |
isEnableServerPooledByteBufAllocator()
Is enable server pooled byte buf allocator boolean.
|
void |
setEnableServerPooledByteBufAllocator(boolean enableServerPooledByteBufAllocator)
Sets enable server pooled byte buf allocator.
|
void |
setServerSelectorThreads(int serverSelectorThreads)
Sets server selector threads.
|
void |
setServerSocketResvBufSize(int serverSocketResvBufSize)
Sets server socket resv buf size.
|
void |
setServerSocketSendBufSize(int serverSocketSendBufSize)
Sets server socket send buf size.
|
void |
setServerWorkerThreads(int serverWorkerThreads)
Sets server worker threads.
|
void |
setSoBackLogSize(int soBackLogSize)
Sets so back log size.
|
void |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Sets write buffer high water mark.
|
void |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Sets write buffer low water mark.
|
public final Class<? extends io.netty.channel.ServerChannel> SERVER_CHANNEL_CLAZZ
public static final io.netty.buffer.PooledByteBufAllocator DIRECT_BYTE_BUF_ALLOCATOR
public int getServerSelectorThreads()
public void setServerSelectorThreads(int serverSelectorThreads)
serverSelectorThreads - the server selector threadspublic static boolean enableEpoll()
public int getServerSocketSendBufSize()
public void setServerSocketSendBufSize(int serverSocketSendBufSize)
serverSocketSendBufSize - the server socket send buf sizepublic int getServerSocketResvBufSize()
public void setServerSocketResvBufSize(int serverSocketResvBufSize)
serverSocketResvBufSize - the server socket resv buf sizepublic int getServerWorkerThreads()
public void setServerWorkerThreads(int serverWorkerThreads)
serverWorkerThreads - the server worker threadspublic int getSoBackLogSize()
public void setSoBackLogSize(int soBackLogSize)
soBackLogSize - the so back log sizepublic int getWriteBufferHighWaterMark()
public void setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
writeBufferHighWaterMark - the write buffer high water markpublic int getWriteBufferLowWaterMark()
public void setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
writeBufferLowWaterMark - the write buffer low water markpublic int getDefaultListenPort()
public int getChannelMaxReadIdleSeconds()
public boolean isEnableServerPooledByteBufAllocator()
public void setEnableServerPooledByteBufAllocator(boolean enableServerPooledByteBufAllocator)
enableServerPooledByteBufAllocator - the enable server pooled byte buf allocatorpublic int getServerChannelMaxIdleTimeSeconds()
public static int getRpcRequestTimeout()
public String getBossThreadPrefix()
public String getWorkerThreadPrefix()
public String getExecutorThreadPrefix()
public int getBossThreadSize()
public int getServerShutdownWaitTime()
Copyright © 2019 Seata. All rights reserved.