📄 iosessionconfig.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setBothIdleTime(int)">setBothIdleTime</A></B>(int idleTime)</CODE><BR> Sets idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#WRITER_IDLE"><CODE>IdleStatus.WRITER_IDLE</CODE></A> in seconds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setIdleTime(org.apache.mina.common.IdleStatus, int)">setIdleTime</A></B>(<A HREF="../../../../org/apache/mina/common/IdleStatus.html" title="class in org.apache.mina.common">IdleStatus</A> status, int idleTime)</CODE><BR> Sets idle time for the specified type of idleness in seconds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setMaxReadBufferSize(int)">setMaxReadBufferSize</A></B>(int maxReadBufferSize)</CODE><BR> Sets the maximum size of the read buffer that I/O processor allocates per each read.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setMinReadBufferSize(int)">setMinReadBufferSize</A></B>(int minReadBufferSize)</CODE><BR> Sets the minimum size of the read buffer that I/O processor allocates per each read.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setReadBufferSize(int)">setReadBufferSize</A></B>(int readBufferSize)</CODE><BR> Sets the size of the read buffer that I/O processor allocates per each read.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setReaderIdleTime(int)">setReaderIdleTime</A></B>(int idleTime)</CODE><BR> Sets idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#READER_IDLE"><CODE>IdleStatus.READER_IDLE</CODE></A> in seconds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setThroughputCalculationInterval(int)">setThroughputCalculationInterval</A></B>(int throughputCalculationInterval)</CODE><BR> Sets the interval (seconds) between each throughput calculation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setUseReadOperation(boolean)">setUseReadOperation</A></B>(boolean useReadOperation)</CODE><BR> Enables or disabled <A HREF="../../../../org/apache/mina/common/IoSession.html#read()"><CODE>IoSession.read()</CODE></A> operation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setWriterIdleTime(int)">setWriterIdleTime</A></B>(int idleTime)</CODE><BR> Sets idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#WRITER_IDLE"><CODE>IdleStatus.WRITER_IDLE</CODE></A> in seconds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/IoSessionConfig.html#setWriteTimeout(int)">setWriteTimeout</A></B>(int writeTimeout)</CODE><BR> Sets write timeout in seconds.</TD></TR></TABLE> <P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getReadBufferSize()"><!-- --></A><H3>getReadBufferSize</H3><PRE>int <B>getReadBufferSize</B>()</PRE><DL><DD>Returns the size of the read buffer that I/O processor allocates per each read. It's unusual to adjust this property because it's often adjusted automatically by the I/O processor.<P><DD><DL></DL></DD></DL><HR><A NAME="setReadBufferSize(int)"><!-- --></A><H3>setReadBufferSize</H3><PRE>void <B>setReadBufferSize</B>(int readBufferSize)</PRE><DL><DD>Sets the size of the read buffer that I/O processor allocates per each read. It's unusual to adjust this property because it's often adjusted automatically by the I/O processor.<P><DD><DL></DL></DD></DL><HR><A NAME="getMinReadBufferSize()"><!-- --></A><H3>getMinReadBufferSize</H3><PRE>int <B>getMinReadBufferSize</B>()</PRE><DL><DD>Returns the minimum size of the read buffer that I/O processor allocates per each read. I/O processor will not decrease the read buffer size to the smaller value than this property value.<P><DD><DL></DL></DD></DL><HR><A NAME="setMinReadBufferSize(int)"><!-- --></A><H3>setMinReadBufferSize</H3><PRE>void <B>setMinReadBufferSize</B>(int minReadBufferSize)</PRE><DL><DD>Sets the minimum size of the read buffer that I/O processor allocates per each read. I/O processor will not decrease the read buffer size to the smaller value than this property value.<P><DD><DL></DL></DD></DL><HR><A NAME="getMaxReadBufferSize()"><!-- --></A><H3>getMaxReadBufferSize</H3><PRE>int <B>getMaxReadBufferSize</B>()</PRE><DL><DD>Returns the maximum size of the read buffer that I/O processor allocates per each read. I/O processor will not increase the read buffer size to the greater value than this property value.<P><DD><DL></DL></DD></DL><HR><A NAME="setMaxReadBufferSize(int)"><!-- --></A><H3>setMaxReadBufferSize</H3><PRE>void <B>setMaxReadBufferSize</B>(int maxReadBufferSize)</PRE><DL><DD>Sets the maximum size of the read buffer that I/O processor allocates per each read. I/O processor will not increase the read buffer size to the greater value than this property value.<P><DD><DL></DL></DD></DL><HR><A NAME="getThroughputCalculationInterval()"><!-- --></A><H3>getThroughputCalculationInterval</H3><PRE>int <B>getThroughputCalculationInterval</B>()</PRE><DL><DD>Returns the interval (seconds) between each throughput calculation. The default value is <tt>3</tt> seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getThroughputCalculationIntervalInMillis()"><!-- --></A><H3>getThroughputCalculationIntervalInMillis</H3><PRE>long <B>getThroughputCalculationIntervalInMillis</B>()</PRE><DL><DD>Returns the interval (milliseconds) between each throughput calculation. The default value is <tt>3</tt> seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="setThroughputCalculationInterval(int)"><!-- --></A><H3>setThroughputCalculationInterval</H3><PRE>void <B>setThroughputCalculationInterval</B>(int throughputCalculationInterval)</PRE><DL><DD>Sets the interval (seconds) between each throughput calculation. The default value is <tt>3</tt> seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getIdleTime(org.apache.mina.common.IdleStatus)"><!-- --></A><H3>getIdleTime</H3><PRE>int <B>getIdleTime</B>(<A HREF="../../../../org/apache/mina/common/IdleStatus.html" title="class in org.apache.mina.common">IdleStatus</A> status)</PRE><DL><DD>Returns idle time for the specified type of idleness in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getIdleTimeInMillis(org.apache.mina.common.IdleStatus)"><!-- --></A><H3>getIdleTimeInMillis</H3><PRE>long <B>getIdleTimeInMillis</B>(<A HREF="../../../../org/apache/mina/common/IdleStatus.html" title="class in org.apache.mina.common">IdleStatus</A> status)</PRE><DL><DD>Returns idle time for the specified type of idleness in milliseconds.<P><DD><DL></DL></DD></DL><HR><A NAME="setIdleTime(org.apache.mina.common.IdleStatus, int)"><!-- --></A><H3>setIdleTime</H3><PRE>void <B>setIdleTime</B>(<A HREF="../../../../org/apache/mina/common/IdleStatus.html" title="class in org.apache.mina.common">IdleStatus</A> status, int idleTime)</PRE><DL><DD>Sets idle time for the specified type of idleness in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getReaderIdleTime()"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -