📄 iosessionconfig.html
字号:
getReaderIdleTime</H3><PRE>int <B>getReaderIdleTime</B>()</PRE><DL><DD>Returns idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#READER_IDLE"><CODE>IdleStatus.READER_IDLE</CODE></A> in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getReaderIdleTimeInMillis()"><!-- --></A><H3>getReaderIdleTimeInMillis</H3><PRE>long <B>getReaderIdleTimeInMillis</B>()</PRE><DL><DD>Returns idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#READER_IDLE"><CODE>IdleStatus.READER_IDLE</CODE></A> in milliseconds.<P><DD><DL></DL></DD></DL><HR><A NAME="setReaderIdleTime(int)"><!-- --></A><H3>setReaderIdleTime</H3><PRE>void <B>setReaderIdleTime</B>(int idleTime)</PRE><DL><DD>Sets idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#READER_IDLE"><CODE>IdleStatus.READER_IDLE</CODE></A> in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getWriterIdleTime()"><!-- --></A><H3>getWriterIdleTime</H3><PRE>int <B>getWriterIdleTime</B>()</PRE><DL><DD>Returns idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#WRITER_IDLE"><CODE>IdleStatus.WRITER_IDLE</CODE></A> in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getWriterIdleTimeInMillis()"><!-- --></A><H3>getWriterIdleTimeInMillis</H3><PRE>long <B>getWriterIdleTimeInMillis</B>()</PRE><DL><DD>Returns idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#WRITER_IDLE"><CODE>IdleStatus.WRITER_IDLE</CODE></A> in milliseconds.<P><DD><DL></DL></DD></DL><HR><A NAME="setWriterIdleTime(int)"><!-- --></A><H3>setWriterIdleTime</H3><PRE>void <B>setWriterIdleTime</B>(int idleTime)</PRE><DL><DD>Sets idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#WRITER_IDLE"><CODE>IdleStatus.WRITER_IDLE</CODE></A> in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getBothIdleTime()"><!-- --></A><H3>getBothIdleTime</H3><PRE>int <B>getBothIdleTime</B>()</PRE><DL><DD>Returns idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#BOTH_IDLE"><CODE>IdleStatus.BOTH_IDLE</CODE></A> in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getBothIdleTimeInMillis()"><!-- --></A><H3>getBothIdleTimeInMillis</H3><PRE>long <B>getBothIdleTimeInMillis</B>()</PRE><DL><DD>Returns idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#BOTH_IDLE"><CODE>IdleStatus.BOTH_IDLE</CODE></A> in milliseconds.<P><DD><DL></DL></DD></DL><HR><A NAME="setBothIdleTime(int)"><!-- --></A><H3>setBothIdleTime</H3><PRE>void <B>setBothIdleTime</B>(int idleTime)</PRE><DL><DD>Sets idle time for <A HREF="../../../../org/apache/mina/common/IdleStatus.html#WRITER_IDLE"><CODE>IdleStatus.WRITER_IDLE</CODE></A> in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getWriteTimeout()"><!-- --></A><H3>getWriteTimeout</H3><PRE>int <B>getWriteTimeout</B>()</PRE><DL><DD>Returns write timeout in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="getWriteTimeoutInMillis()"><!-- --></A><H3>getWriteTimeoutInMillis</H3><PRE>long <B>getWriteTimeoutInMillis</B>()</PRE><DL><DD>Returns write timeout in milliseconds.<P><DD><DL></DL></DD></DL><HR><A NAME="setWriteTimeout(int)"><!-- --></A><H3>setWriteTimeout</H3><PRE>void <B>setWriteTimeout</B>(int writeTimeout)</PRE><DL><DD>Sets write timeout in seconds.<P><DD><DL></DL></DD></DL><HR><A NAME="isUseReadOperation()"><!-- --></A><H3>isUseReadOperation</H3><PRE>boolean <B>isUseReadOperation</B>()</PRE><DL><DD>Returns <tt>true</tt> if and only if <A HREF="../../../../org/apache/mina/common/IoSession.html#read()"><CODE>IoSession.read()</CODE></A> operation is enabled. If enabled, all received messages are stored in an internal <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/BlockingQueue.html?is-external=true" title="class or interface in java.util.concurrent"><CODE>BlockingQueue</CODE></A> 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.<P><DD><DL></DL></DD></DL><HR><A NAME="setUseReadOperation(boolean)"><!-- --></A><H3>setUseReadOperation</H3><PRE>void <B>setUseReadOperation</B>(boolean useReadOperation)</PRE><DL><DD>Enables or disabled <A HREF="../../../../org/apache/mina/common/IoSession.html#read()"><CODE>IoSession.read()</CODE></A> operation. If enabled, all received messages are stored in an internal <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/BlockingQueue.html?is-external=true" title="class or interface in java.util.concurrent"><CODE>BlockingQueue</CODE></A> 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.<P><DD><DL></DL></DD></DL><HR><A NAME="setAll(org.apache.mina.common.IoSessionConfig)"><!-- --></A><H3>setAll</H3><PRE>void <B>setAll</B>(<A HREF="../../../../org/apache/mina/common/IoSessionConfig.html" title="interface in org.apache.mina.common">IoSessionConfig</A> config)</PRE><DL><DD>Sets all configuration properties retrieved from the specified <tt>config</tt>.<P><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IoSessionConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/apache/mina/common/IoSessionAttributeMap.html" title="interface in org.apache.mina.common"><B>PREV CLASS</B></A> <A HREF="../../../../org/apache/mina/common/IoSessionDataStructureFactory.html" title="interface in org.apache.mina.common"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/apache/mina/common/IoSessionConfig.html" target="_top"><B>FRAMES</B></A> <A HREF="IoSessionConfig.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright 漏 2004-2008 <a href="http://mina.apache.org/">Apache MINA Project</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -