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

📄 defaultconnectfuture.html

📁 MINA+API 关于MINA的API
💻 HTML
📖 第 1 页 / 共 3 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common"><CODE>IoSession</CODE></A> which is associated with this future.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/DefaultConnectFuture.html#isCanceled()">isCanceled</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if the connect operation has been canceled by <A HREF="../../../../org/apache/mina/common/ConnectFuture.html#cancel()"><CODE>ConnectFuture.cancel()</CODE></A> method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/DefaultConnectFuture.html#isConnected()">isConnected</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <tt>true</tt> if the connect operation is finished successfully.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&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/DefaultConnectFuture.html#newFailedFuture(java.lang.Throwable)">newFailedFuture</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;exception)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new <A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common"><CODE>ConnectFuture</CODE></A> which is already marked as 'failed to connect'.</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/DefaultConnectFuture.html#removeListener(org.apache.mina.common.IoFutureListener)">removeListener</A></B>(<A HREF="../../../../org/apache/mina/common/IoFutureListener.html" title="interface in org.apache.mina.common">IoFutureListener</A>&lt;?&gt;&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes an existing event <tt>listener</tt> which is notified when the state of this future changes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/DefaultConnectFuture.html#setException(java.lang.Throwable)">setException</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;exception)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the exception caught due to connection failure and notifies all threads waiting for this future.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/mina/common/DefaultConnectFuture.html#setSession(org.apache.mina.common.IoSession)">setSession</A></B>(<A HREF="../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A>&nbsp;session)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the newly connected session and notifies all threads waiting for this future.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.mina.common.DefaultIoFuture"><!-- --></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/DefaultIoFuture.html" title="class in org.apache.mina.common">DefaultIoFuture</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#await(long)">await</A>, <A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#await(long, java.util.concurrent.TimeUnit)">await</A>, <A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#awaitUninterruptibly(long)">awaitUninterruptibly</A>, <A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#awaitUninterruptibly(long, java.util.concurrent.TimeUnit)">awaitUninterruptibly</A>, <A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#getValue()">getValue</A>, <A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#isReady()">isReady</A>, <A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#join()">join</A>, <A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#join(long)">join</A>, <A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#setValue(java.lang.Object)">setValue</A></CODE></TD></TR></TABLE>&nbsp;<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#equals(java.lang.Object)" title="class or interface in java.lang">equals</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#hashCode()" title="class or interface in java.lang">hashCode</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#toString()" title="class or interface in java.lang">toString</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>&nbsp;<A NAME="methods_inherited_from_class_org.apache.mina.common.IoFuture"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface org.apache.mina.common.<A HREF="../../../../org/apache/mina/common/IoFuture.html" title="interface in org.apache.mina.common">IoFuture</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/apache/mina/common/IoFuture.html#await(long)">await</A>, <A HREF="../../../../org/apache/mina/common/IoFuture.html#await(long, java.util.concurrent.TimeUnit)">await</A>, <A HREF="../../../../org/apache/mina/common/IoFuture.html#awaitUninterruptibly(long)">awaitUninterruptibly</A>, <A HREF="../../../../org/apache/mina/common/IoFuture.html#awaitUninterruptibly(long, java.util.concurrent.TimeUnit)">awaitUninterruptibly</A>, <A HREF="../../../../org/apache/mina/common/IoFuture.html#isReady()">isReady</A>, <A HREF="../../../../org/apache/mina/common/IoFuture.html#join()">join</A>, <A HREF="../../../../org/apache/mina/common/IoFuture.html#join(long)">join</A></CODE></TD></TR></TABLE>&nbsp;<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="DefaultConnectFuture()"><!-- --></A><H3>DefaultConnectFuture</H3><PRE>public <B>DefaultConnectFuture</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="newFailedFuture(java.lang.Throwable)"><!-- --></A><H3>newFailedFuture</H3><PRE>public static <A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A> <B>newFailedFuture</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;exception)</PRE><DL><DD>Returns a new <A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common"><CODE>ConnectFuture</CODE></A> which is already marked as 'failed to connect'.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSession()"><!-- --></A><H3>getSession</H3><PRE>public <A HREF="../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common">IoSession</A> <B>getSession</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/mina/common/IoFuture.html#getSession()">IoFuture</A></CODE></B></DD><DD>Returns the <A HREF="../../../../org/apache/mina/common/IoSession.html" title="interface in org.apache.mina.common"><CODE>IoSession</CODE></A> which is associated with this future.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html#getSession()">getSession</A></CODE> in interface <CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/mina/common/IoFuture.html#getSession()">getSession</A></CODE> in interface <CODE><A HREF="../../../../org/apache/mina/common/IoFuture.html" title="interface in org.apache.mina.common">IoFuture</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html#getSession()">getSession</A></CODE> in class <CODE><A HREF="../../../../org/apache/mina/common/DefaultIoFuture.html" title="class in org.apache.mina.common">DefaultIoFuture</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><tt>null</tt> if the connect operation is not finished yet</DL></DD></DL><HR><A NAME="getException()"><!-- --></A><H3>getException</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> <B>getException</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html#getException()">ConnectFuture</A></CODE></B></DD><DD>Returns the cause of the connection failure.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html#getException()">getException</A></CODE> in interface <CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><tt>null</tt> if the connect operation is not finished yet,         or if the connection attempt is successful.</DL></DD></DL><HR><A NAME="isConnected()"><!-- --></A><H3>isConnected</H3><PRE>public boolean <B>isConnected</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html#isConnected()">ConnectFuture</A></CODE></B></DD><DD>Returns <tt>true</tt> if the connect operation is finished successfully.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html#isConnected()">isConnected</A></CODE> in interface <CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isCanceled()"><!-- --></A><H3>isCanceled</H3><PRE>public boolean <B>isCanceled</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html#isCanceled()">ConnectFuture</A></CODE></B></DD><DD>Returns <code>true</code> if the connect operation has been canceled by <A HREF="../../../../org/apache/mina/common/ConnectFuture.html#cancel()"><CODE>ConnectFuture.cancel()</CODE></A> method.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html#isCanceled()">isCanceled</A></CODE> in interface <CODE><A HREF="../../../../org/apache/mina/common/ConnectFuture.html" title="interface in org.apache.mina.common">ConnectFuture</A></CODE></DL></DD><DD><DL>

⌨️ 快捷键说明

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