|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoSessionConfig
The configuration of IoSession
.
Method Summary | |
---|---|
int |
getBothIdleTime()
Returns idle time for IdleStatus.BOTH_IDLE in seconds. |
long |
getBothIdleTimeInMillis()
Returns idle time for IdleStatus.BOTH_IDLE in milliseconds. |
int |
getIdleTime(IdleStatus status)
Returns idle time for the specified type of idleness in seconds. |
long |
getIdleTimeInMillis(IdleStatus status)
Returns idle time for the specified type of idleness in milliseconds. |
int |
getMaxReadBufferSize()
Returns the maximum size of the read buffer that I/O processor allocates per each read. |
int |
getMinReadBufferSize()
Returns the minimum size of the read buffer that I/O processor allocates per each read. |
int |
getReadBufferSize()
Returns the size of the read buffer that I/O processor allocates per each read. |
int |
getReaderIdleTime()
Returns idle time for IdleStatus.READER_IDLE in seconds. |
long |
getReaderIdleTimeInMillis()
Returns idle time for IdleStatus.READER_IDLE in milliseconds. |
int |
getThroughputCalculationInterval()
Returns the interval (seconds) between each throughput calculation. |
long |
getThroughputCalculationIntervalInMillis()
Returns the interval (milliseconds) between each throughput calculation. |
int |
getWriterIdleTime()
Returns idle time for IdleStatus.WRITER_IDLE in seconds. |
long |
getWriterIdleTimeInMillis()
Returns idle time for IdleStatus.WRITER_IDLE in milliseconds. |
int |
getWriteTimeout()
Returns write timeout in seconds. |
long |
getWriteTimeoutInMillis()
Returns write timeout in milliseconds. |
boolean |
isUseReadOperation()
Returns true if and only if IoSession.read() operation
is enabled. |
void |
setAll(IoSessionConfig config)
Sets all configuration properties retrieved from the specified config. |
void |
setBothIdleTime(int idleTime)
Sets idle time for IdleStatus.WRITER_IDLE in seconds. |
void |
setIdleTime(IdleStatus status,
int idleTime)
Sets idle time for the specified type of idleness in seconds. |
void |
setMaxReadBufferSize(int maxReadBufferSize)
Sets the maximum size of the read buffer that I/O processor allocates per each read. |
void |
setMinReadBufferSize(int minReadBufferSize)
Sets the minimum size of the read buffer that I/O processor allocates per each read. |
void |
setReadBufferSize(int readBufferSize)
Sets the size of the read buffer that I/O processor allocates per each read. |
void |
setReaderIdleTime(int idleTime)
Sets idle time for IdleStatus.READER_IDLE in seconds. |
void |
setThroughputCalculationInterval(int throughputCalculationInterval)
Sets the interval (seconds) between each throughput calculation. |
void |
setUseReadOperation(boolean useReadOperation)
Enables or disabled IoSession.read() operation. |
void |
setWriterIdleTime(int idleTime)
Sets idle time for IdleStatus.WRITER_IDLE in seconds. |
void |
setWriteTimeout(int writeTimeout)
Sets write timeout in seconds. |
Method Detail |
---|
int getReadBufferSize()
void setReadBufferSize(int readBufferSize)
int getMinReadBufferSize()
void setMinReadBufferSize(int minReadBufferSize)
int getMaxReadBufferSize()
void setMaxReadBufferSize(int maxReadBufferSize)
int getThroughputCalculationInterval()
long getThroughputCalculationIntervalInMillis()
void setThroughputCalculationInterval(int throughputCalculationInterval)
int getIdleTime(IdleStatus status)
long getIdleTimeInMillis(IdleStatus status)
void setIdleTime(IdleStatus status, int idleTime)
int getReaderIdleTime()
IdleStatus.READER_IDLE
in seconds.
long getReaderIdleTimeInMillis()
IdleStatus.READER_IDLE
in milliseconds.
void setReaderIdleTime(int idleTime)
IdleStatus.READER_IDLE
in seconds.
int getWriterIdleTime()
IdleStatus.WRITER_IDLE
in seconds.
long getWriterIdleTimeInMillis()
IdleStatus.WRITER_IDLE
in milliseconds.
void setWriterIdleTime(int idleTime)
IdleStatus.WRITER_IDLE
in seconds.
int getBothIdleTime()
IdleStatus.BOTH_IDLE
in seconds.
long getBothIdleTimeInMillis()
IdleStatus.BOTH_IDLE
in milliseconds.
void setBothIdleTime(int idleTime)
IdleStatus.WRITER_IDLE
in seconds.
int getWriteTimeout()
long getWriteTimeoutInMillis()
void setWriteTimeout(int writeTimeout)
boolean isUseReadOperation()
IoSession.read()
operation
is enabled. If enabled, all received messages are stored in an internal
BlockingQueue
so you can read received messages in more
convenient way for client applications. Enabling this option is not
useful to server applications and can cause unintended memory leak, and
therefore it's disabled by default.
void setUseReadOperation(boolean useReadOperation)
IoSession.read()
operation. If enabled, all
received messages are stored in an internal BlockingQueue
so you
can read received messages in more convenient way for client
applications. Enabling this option is not useful to server applications
and can cause unintended memory leak, and therefore it's disabled by
default.
void setAll(IoSessionConfig config)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |