📄 dummysession.html
字号:
<TD><CODE><B><A HREF="../../../../org/apache/mina/common/DummySession.html#getTransportMetadata()">getTransportMetadata</A></B>()</CODE><BR> Returns the <A HREF="../../../../org/apache/mina/common/TransportMetadata.html" title="interface in org.apache.mina.common"><CODE>TransportMetadata</CODE></A> that this session runs on.</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/DummySession.html#setConfig(org.apache.mina.common.IoSessionConfig)">setConfig</A></B>(<A HREF="../../../../org/apache/mina/common/IoSessionConfig.html" title="interface in org.apache.mina.common">IoSessionConfig</A> config)</CODE><BR> Sets the configuration of this session.</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/DummySession.html#setHandler(org.apache.mina.common.IoHandler)">setHandler</A></B>(<A HREF="../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common">IoHandler</A> handler)</CODE><BR> Sets the <A HREF="../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common"><CODE>IoHandler</CODE></A> which handles this session.</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/DummySession.html#setLocalAddress(java.net.SocketAddress)">setLocalAddress</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</A> localAddress)</CODE><BR> Sets the socket address of local machine which is associated with this session.</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/DummySession.html#setRemoteAddress(java.net.SocketAddress)">setRemoteAddress</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</A> remoteAddress)</CODE><BR> Sets the socket address of remote peer.</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/DummySession.html#setScheduledWriteBytes(long)">setScheduledWriteBytes</A></B>(long byteCount)</CODE><BR> </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/DummySession.html#setScheduledWriteMessages(int)">setScheduledWriteMessages</A></B>(int messages)</CODE><BR> </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/DummySession.html#setService(org.apache.mina.common.IoService)">setService</A></B>(<A HREF="../../../../org/apache/mina/common/IoService.html" title="interface in org.apache.mina.common">IoService</A> service)</CODE><BR> Sets the <A HREF="../../../../org/apache/mina/common/IoService.html" title="interface in org.apache.mina.common"><CODE>IoService</CODE></A> which provides I/O service to this session.</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/DummySession.html#setTransportMetadata(org.apache.mina.common.TransportMetadata)">setTransportMetadata</A></B>(<A HREF="../../../../org/apache/mina/common/TransportMetadata.html" title="interface in org.apache.mina.common">TransportMetadata</A> transportMetadata)</CODE><BR> Sets the <A HREF="../../../../org/apache/mina/common/TransportMetadata.html" title="interface in org.apache.mina.common"><CODE>TransportMetadata</CODE></A> that this session runs on.</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/DummySession.html#updateThroughput(boolean)">updateThroughput</A></B>(boolean force)</CODE><BR> Update all statistical properties related with throughput.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.mina.common.AbstractIoSession"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.mina.common.<A HREF="../../../../org/apache/mina/common/AbstractIoSession.html" title="class in org.apache.mina.common">AbstractIoSession</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#close()">close</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#close(boolean)">close</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#closeOnFlush()">closeOnFlush</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#containsAttribute(java.lang.Object)">containsAttribute</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#decreaseReadBufferSize()">decreaseReadBufferSize</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#decreaseScheduledBytesAndMessages(org.apache.mina.common.WriteRequest)">decreaseScheduledBytesAndMessages</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getAttachment()">getAttachment</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getAttribute(java.lang.Object)">getAttribute</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getAttribute(java.lang.Object, java.lang.Object)">getAttribute</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getAttributeKeys()">getAttributeKeys</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getAttributeMap()">getAttributeMap</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getBothIdleCount()">getBothIdleCount</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getCloseFuture()">getCloseFuture</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getCreationTime()">getCreationTime</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getCurrentWriteRequest()">getCurrentWriteRequest</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getId()">getId</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getIdleCount(org.apache.mina.common.IdleStatus)">getIdleCount</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getLastBothIdleTime()">getLastBothIdleTime</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getLastIdleTime(org.apache.mina.common.IdleStatus)">getLastIdleTime</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getLastIoTime()">getLastIoTime</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getLastReaderIdleTime()">getLastReaderIdleTime</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getLastReadTime()">getLastReadTime</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getLastWriterIdleTime()">getLastWriterIdleTime</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getLastWriteTime()">getLastWriteTime</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getReadBytes()">getReadBytes</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getReadBytesThroughput()">getReadBytesThroughput</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getReaderIdleCount()">getReaderIdleCount</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getReadMessages()">getReadMessages</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getReadMessagesThroughput()">getReadMessagesThroughput</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getScheduledWriteBytes()">getScheduledWriteBytes</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getScheduledWriteMessages()">getScheduledWriteMessages</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getServiceAddress()">getServiceAddress</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getTrafficMask()">getTrafficMask</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getWriteRequestQueue()">getWriteRequestQueue</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getWriterIdleCount()">getWriterIdleCount</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getWrittenBytes()">getWrittenBytes</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getWrittenBytesThroughput()">getWrittenBytesThroughput</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getWrittenMessages()">getWrittenMessages</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#getWrittenMessagesThroughput()">getWrittenMessagesThroughput</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#hashCode()">hashCode</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#increaseIdleCount(org.apache.mina.common.IdleStatus, long)">increaseIdleCount</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#increaseReadBufferSize()">increaseReadBufferSize</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#increaseReadBytes(long, long)">increaseReadBytes</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#increaseReadMessages(long)">increaseReadMessages</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#increaseScheduledWriteBytes(long)">increaseScheduledWriteBytes</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#increaseScheduledWriteMessages()">increaseScheduledWriteMessages</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#increaseWrittenBytesAndMessages(org.apache.mina.common.WriteRequest, long)">increaseWrittenBytesAndMessages</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#isBothIdle()">isBothIdle</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#isClosing()">isClosing</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#isConnected()">isConnected</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#isIdle(org.apache.mina.common.IdleStatus)">isIdle</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#isReaderIdle()">isReaderIdle</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#isScheduledForFlush()">isScheduledForFlush</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#isWriterIdle()">isWriterIdle</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#offerClosedReadFuture()">offerClosedReadFuture</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#offerFailedReadFuture(java.lang.Throwable)">offerFailedReadFuture</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#offerReadFuture(java.lang.Object)">offerReadFuture</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#read()">read</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#removeAttribute(java.lang.Object)">removeAttribute</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#removeAttribute(java.lang.Object, java.lang.Object)">removeAttribute</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#replaceAttribute(java.lang.Object, java.lang.Object, java.lang.Object)">replaceAttribute</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#resumeRead()">resumeRead</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#resumeWrite()">resumeWrite</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setAttachment(java.lang.Object)">setAttachment</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setAttribute(java.lang.Object)">setAttribute</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setAttribute(java.lang.Object, java.lang.Object)">setAttribute</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setAttributeIfAbsent(java.lang.Object)">setAttributeIfAbsent</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setAttributeIfAbsent(java.lang.Object, java.lang.Object)">setAttributeIfAbsent</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setAttributeMap(org.apache.mina.common.IoSessionAttributeMap)">setAttributeMap</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setCurrentWriteRequest(org.apache.mina.common.WriteRequest)">setCurrentWriteRequest</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setScheduledForFlush(boolean)">setScheduledForFlush</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setTrafficMask(org.apache.mina.common.TrafficMask)">setTrafficMask</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setTrafficMaskNow(org.apache.mina.common.TrafficMask)">setTrafficMaskNow</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#setWriteRequestQueue(org.apache.mina.common.WriteRequestQueue)">setWriteRequestQueue</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#suspendRead()">suspendRead</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#suspendWrite()">suspendWrite</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#toString()">toString</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#updateThroughput(long, boolean)">updateThroughput</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#write(java.lang.Object)">write</A>, <A HREF="../../../../org/apache/mina/common/AbstractIoSession.html#write(java.lang.Object, java.net.SocketAddress)">write</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="DummySession()"><!-- --></A><H3>DummySession</H3><PRE>public <B>DummySession</B>()</PRE><DL><DD>Creates a new instance.<P></DL><!-- ============ 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="getConfig()"><!-- --></A><H3>getConfig</H3><PRE>public <A HREF="../../../../org/apache/mina/common/IoSessionConfig.html" title="interface in org.apache.mina.common">IoSessionConfig</A> <B>getConfig</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/mina/common/IoSession.html#getConfig()">IoSession</A></CODE></B></DD><DD>Returns the configuration of this session.<P><DD><DL></DL></DD></DL><HR><A NAME="setConfig(org.apache.mina.common.IoSessionConfig)"><!-- --></A><H3>setConfig</H3><PRE>public void <B>setConfig</B>(<A HREF="../../../../org/apache/mina/common/IoSessionConfig.html" title="interface in org.apache.mina.common">IoSessionConfig</A> config)</PRE><DL><DD>Sets the configuration of this session.<P><DD><DL></DL></DD></DL><HR><A NAME="getFilterChain()"><!-- --></A><H3>getFilterChain</H3><PRE>public <A HREF="../../../../org/apache/mina/common/IoFilterChain.html" title="interface in org.apache.mina.common">IoFilterChain</A> <B>getFilterChain</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/mina/common/IoSession.html#getFilterChain()">IoSession</A></CODE></B></DD><DD>Returns the filter chain that only affects this session.<P><DD><DL></DL></DD></DL><HR><A NAME="getHandler()"><!-- --></A><H3>getHandler</H3><PRE>public <A HREF="../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common">IoHandler</A> <B>getHandler</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/mina/common/IoSession.html#getHandler()">IoSession</A></CODE></B></DD><DD>Returns the <A HREF="../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common"><CODE>IoHandler</CODE></A> which handles this session.<P><DD><DL></DL></DD></DL><HR><A NAME="setHandler(org.apache.mina.common.IoHandler)"><!-- --></A><H3>setHandler</H3><PRE>public void <B>setHandler</B>(<A HREF="../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common">IoHandler</A> handler)</PRE><DL><DD>Sets the <A HREF="../../../../org/apache/mina/common/IoHandler.html" title="interface in org.apache.mina.common"><CODE>IoHandler</CODE></A> which handles this session.<P><DD><DL></DL></DD></DL><HR><A NAME="getLocalAddress()"><!-- --></A><H3>getLocalAddress</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</A> <B>getLocalAddress</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/mina/common/IoSession.html#getLocalAddress()">IoSession</A></CODE></B></DD><DD>Returns the socket address of local machine which is associated with this session.<P><DD><DL></DL></DD></DL><HR><A NAME="getRemoteAddress()"><!-- --></A><H3>getRemoteAddress</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</A> <B>getRemoteAddress</B>()</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -