⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractioconnector.html

📁 MINA+API 关于MINA的API
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/apache/mina/common/AbstractIoService.ServiceOperationFuture.html" title="class in org.apache.mina.common">AbstractIoService.ServiceOperationFuture</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected </CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#AbstractIoConnector(org.apache.mina.common.IoSessionConfig)">AbstractIoConnector</A></B>(<A HREF="../../../../org/apache/mina/common/IoSessionConfig.html" title="interface in org.apache.mina.common">IoSessionConfig</A>&nbsp;sessionConfig)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#connect()">connect</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connects to the <A HREF="../../../../org/apache/mina/common/IoConnector.html#setDefaultRemoteAddress(java.net.SocketAddress)"><CODE>default remote address</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#connect(org.apache.mina.common.IoSessionInitializer)">connect</A></B>(<A HREF="../../../../org/apache/mina/common/IoSessionInitializer.html" title="interface in org.apache.mina.common">IoSessionInitializer</A>&lt;? extends <A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A>&gt;&nbsp;sessionInitializer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connects to the <A HREF="../../../../org/apache/mina/common/IoConnector.html#setDefaultRemoteAddress(java.net.SocketAddress)"><CODE>default remote address</CODE></A> and invokes the <code>ioSessionInitializer</code> when the IoSession is created but before <A HREF="../../../../org/apache/mina/common/IoHandler.html#sessionCreated(org.apache.mina.common.IoSession)"><CODE>IoHandler.sessionCreated(IoSession)</CODE></A> is invoked.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#connect(java.net.SocketAddress)">connect</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>&nbsp;remoteAddress)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connects to the specified remote address.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#connect(java.net.SocketAddress, org.apache.mina.common.IoSessionInitializer)">connect</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>&nbsp;remoteAddress,        <A HREF="../../../../org/apache/mina/common/IoSessionInitializer.html" title="interface in org.apache.mina.common">IoSessionInitializer</A>&lt;? extends <A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A>&gt;&nbsp;sessionInitializer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connects to the specified remote address and invokes the <code>ioSessionInitializer</code> when the IoSession is created but before <A HREF="../../../../org/apache/mina/common/IoHandler.html#sessionCreated(org.apache.mina.common.IoSession)"><CODE>IoHandler.sessionCreated(IoSession)</CODE></A> is invoked.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#connect(java.net.SocketAddress, java.net.SocketAddress)">connect</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>&nbsp;remoteAddress,        <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>&nbsp;localAddress)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connects to the specified remote address binding to the specified local address.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#connect(java.net.SocketAddress, java.net.SocketAddress, org.apache.mina.common.IoSessionInitializer)">connect</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>&nbsp;remoteAddress,        <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>&nbsp;localAddress,        <A HREF="../../../../org/apache/mina/common/IoSessionInitializer.html" title="interface in org.apache.mina.common">IoSessionInitializer</A>&lt;? extends <A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A>&gt;&nbsp;sessionInitializer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connects to the specified remote address binding to the specified local address and and invokes the <code>ioSessionInitializer</code> when the IoSession is created but before <A HREF="../../../../org/apache/mina/common/IoHandler.html#sessionCreated(org.apache.mina.common.IoSession)"><CODE>IoHandler.sessionCreated(IoSession)</CODE></A> is invoked.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract &nbsp;<A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#connect0(java.net.SocketAddress, java.net.SocketAddress, org.apache.mina.common.IoSessionInitializer)">connect0</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>&nbsp;remoteAddress,         <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>&nbsp;localAddress,         <A HREF="../../../../org/apache/mina/common/IoSessionInitializer.html" title="interface in org.apache.mina.common">IoSessionInitializer</A>&lt;? extends <A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A>&gt;&nbsp;sessionInitializer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implement this method to perform the actual connect operation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#finishSessionInitialization0(org.apache.mina.common.IoSession, org.apache.mina.common.IoFuture)">finishSessionInitialization0</A></B>(<A HREF="../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A>&nbsp;session,                             <A HREF="../../../../org/apache/mina/common/IoFuture.html" title="interface in org.apache.mina.common">IoFuture</A>&nbsp;future)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds required internal attributes and <A HREF="../../../../org/apache/mina/common/IoFutureListener.html" title="interface in org.apache.mina.common"><CODE>IoFutureListener</CODE></A>s related with event notifications to the specified <code>session</code> and <code>future</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#getConnectTimeout()">getConnectTimeout</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the connect timeout in seconds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#getConnectTimeoutMillis()">getConnectTimeoutMillis</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the connect timeout in milliseconds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/AbstractIoConnector.html#getDefaultRemoteAddress()">getDefaultRemoteAddress</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the default remote address to connect to when no argument is specified in <A HREF="../../../../org/apache/mina/common/IoConnector.html#connect()"><CODE>IoConnector.connect()</CODE></A> method.</TD></TR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -