public class RpcServerOptions extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
EPOLL_EVENT_GROUP
The Constant EPOLL_EVENT_GROUP.
|
static int |
POLL_EVENT_GROUP
The Constant POLL_EVENT_GROUP.
|
boolean |
tcpNoDelay
use TcpNoDelay or not.
|
| 构造器和说明 |
|---|
RpcServerOptions()
Instantiates a new rpc server options.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
copyFrom(RpcServerOptions options)
Copy from.
|
int |
getAcceptorThreads()
Gets the acceptor threads.
|
int |
getBacklog()
Gets the backlog.
|
ByteOrder |
getByteOrder()
Gets the 字节顺序 *.
|
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, in milliseconds.
|
int |
getHttpServerPort()
Gets the if http server port > 0 will start http server.
|
int |
getIoEventGroupType()
Gets the io event group type.
|
int |
getKeepAliveTime()
Gets the keep alive time.
|
int |
getMaxSize()
Gets the max size.
|
int |
getReaderIdleTime()
Gets the an
IdleStateEvent whose state is IdleState.READER_IDLE will be triggered when no read
was performed for the specified period of time. |
int |
getReceiveBufferSize()
Gets the receive buffer size.
|
int |
getSendBufferSize()
Gets the send buffer size.
|
int |
getSoLinger()
Gets the so linger.
|
int |
getTaskTheads()
Gets the task theads.
|
int |
getWorkThreads()
Gets the work threads.
|
int |
getWriterIdleTime()
Gets the an
IdleStateEvent whose state is IdleState.WRITER_IDLE will be triggered when no write
was performed for the specified period of time. |
boolean |
isKeepAlive()
Checks if is keep alive.
|
boolean |
isTcpNoDelay()
Checks if is use TcpNoDelay or not.
|
void |
setAcceptorThreads(int acceptorThreads)
Sets the acceptor threads.
|
void |
setBacklog(int backlog)
Sets the backlog.
|
void |
setByteOrder(ByteOrder byteOrder)
Sets the 字节顺序 *.
|
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, in milliseconds.
|
void |
setHttpServerPort(int httpServerPort)
Sets the if http server port > 0 will start http server.
|
void |
setIoEventGroupType(int ioEventGroupType)
Sets the io event group type.
|
void |
setKeepAlive(boolean keepAlive)
Sets the keep alive.
|
void |
setKeepAliveTime(int keepAliveTime)
Sets the keep alive time.
|
void |
setMaxSize(int maxSize)
Sets the max size.
|
void |
setReaderIdleTime(int readerIdleTime)
Sets the an
IdleStateEvent whose state is IdleState.READER_IDLE will be triggered when no read
was performed for the specified period of time. |
void |
setReceiveBufferSize(int receiveBufferSize)
Sets the receive buffer size.
|
void |
setSendBufferSize(int sendBufferSize)
Sets the send buffer size.
|
void |
setSoLinger(int soLinger)
Sets the so linger.
|
void |
setTaskTheads(int taskTheads)
Sets the task theads.
|
void |
setTcpNoDelay(boolean tcpNoDelay)
Sets the use TcpNoDelay or not.
|
void |
setWorkThreads(int workThreads)
Sets the work threads.
|
void |
setWriterIdleTime(int writerIdleTime)
Sets the an
IdleStateEvent whose state is IdleState.WRITER_IDLE will be triggered when no write
was performed for the specified period of time. |
String |
toString() |
public static final int POLL_EVENT_GROUP
public static final int EPOLL_EVENT_GROUP
public boolean tcpNoDelay
public void copyFrom(RpcServerOptions options)
options - the optionspublic long getChunkSize()
public void setChunkSize(long chunkSize)
chunkSize - the new chunk sizepublic int getKeepAliveTime()
public void setKeepAliveTime(int keepAliveTime)
keepAliveTime - the new keep alive timepublic int getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
sendBufferSize - the new send buffer sizepublic int getSoLinger()
public void setSoLinger(int soLinger)
soLinger - the new so lingerpublic int getBacklog()
public void setBacklog(int backlog)
backlog - the new backlogpublic int getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
receiveBufferSize - the new receive buffer sizepublic int getReaderIdleTime()
IdleStateEvent whose state is IdleState.READER_IDLE will be triggered when no read
was performed for the specified period of time.IdleStateEvent whose state is IdleState.READER_IDLE will be triggered when no read
was performed for the specified period of timepublic void setReaderIdleTime(int readerIdleTime)
IdleStateEvent whose state is IdleState.READER_IDLE will be triggered when no read
was performed for the specified period of time.readerIdleTime - the new an IdleStateEvent whose state is IdleState.READER_IDLE will be
triggered when no read was performed for the specified period of timepublic int getWriterIdleTime()
IdleStateEvent whose state is IdleState.WRITER_IDLE will be triggered when no write
was performed for the specified period of time.IdleStateEvent whose state is IdleState.WRITER_IDLE will be triggered when no
write was performed for the specified period of timepublic void setWriterIdleTime(int writerIdleTime)
IdleStateEvent whose state is IdleState.WRITER_IDLE will be triggered when no write
was performed for the specified period of time.writerIdleTime - the new an IdleStateEvent whose state is IdleState.WRITER_IDLE will be
triggered when no write was performed for the specified period of timepublic boolean isTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay - the new use TcpNoDelay or notpublic ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
byteOrder - the new 字节顺序 *public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
connectTimeout - the new connect timeout, in millisecondspublic boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive - the new keep alivepublic int getChunkPackageTimeout()
public void setChunkPackageTimeout(int chunkPackageTimeout)
chunkPackageTimeout - the new time out set for chunk package wait in mspublic int getMaxSize()
public void setMaxSize(int maxSize)
maxSize - the new max sizepublic int getAcceptorThreads()
public void setAcceptorThreads(int acceptorThreads)
acceptorThreads - the new acceptor threadspublic int getWorkThreads()
public void setWorkThreads(int workThreads)
workThreads - the new work threadspublic int getHttpServerPort()
public void setHttpServerPort(int httpServerPort)
httpServerPort - the new if http server port > 0 will start http serverpublic int getTaskTheads()
public void setTaskTheads(int taskTheads)
taskTheads - the new task theadspublic int getIoEventGroupType()
public void setIoEventGroupType(int ioEventGroupType)
ioEventGroupType - the new io event group typeCopyright © 2022 Baidu, Inc.. All rights reserved.