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

📄 pipeserviceimpl.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                                   long&nbsp;timeout)                            throws java.io.IOException</PRE><DL><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. The pipe will be be resolved to one of the peers in the set of peer ids provided within the provided timeout.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, long)">createOutputPipe</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/PipeService.html" title="interface in net.jxta.pipe">PipeService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>resolvablePeers</CODE> - The set of peers on which the pipe may be resolved. All elements of the set <strong>must</strong> must be of type <A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer"><CODE>PeerID</CODE></A>. <strong>If the Set is empty then the pipe may be resolved to any destination peer.</strong><DD><CODE>timeout</CODE> - time duration in milliseconds to wait for a successful pipe resolution. <code>0</code> will wait indefinitely. All negative values will cause a wait of an inplementation defined non-infinite value. (this behaviour is deprecated and may eventually disappear).<DT><B>Returns:</B><DD>OutputPipe the successfully resolved OutputPipe.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created or failed to resolve within the specified time.</DL></DD></DL><HR><A NAME="createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.pipe.OutputPipeListener)"><!-- --></A><H3>createOutputPipe</H3><PRE>public void <B>createOutputPipe</B>(<A HREF="../../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;pipeAdv,                             <A HREF="../../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A>&nbsp;listener)                      throws java.io.IOException</PRE><DL><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. The pipe may be resolved to any destination peer. When the pipe is resolved the listener will be called.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.pipe.OutputPipeListener)">createOutputPipe</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/PipeService.html" title="interface in net.jxta.pipe">PipeService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pipeAdv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>listener</CODE> - the listener to be called when the pipe is resolved.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created.</DL></DD></DL><HR><A NAME="createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.peer.PeerID, net.jxta.pipe.OutputPipeListener)"><!-- --></A><H3>createOutputPipe</H3><PRE>public void <B>createOutputPipe</B>(<A HREF="../../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;pipeAdv,                             <A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A>&nbsp;peerid,                             <A HREF="../../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A>&nbsp;listener)                      throws java.io.IOException</PRE><DL><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. When the pipe is resolved to the peer id provided the listener will be called.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, net.jxta.peer.PeerID, net.jxta.pipe.OutputPipeListener)">createOutputPipe</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/PipeService.html" title="interface in net.jxta.pipe">PipeService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pipeAdv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>peerid</CODE> - The peer id of the peer on which  on which the pipe may be resolved. All elements of the enumeration <strong>must</strong> must be of type <A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer"><CODE>PeerID</CODE></A>.<DD><CODE>listener</CODE> - the listener to be called when the pipe is resolved.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created.</DL></DD></DL><HR><A NAME="createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, net.jxta.pipe.OutputPipeListener)"><!-- --></A><H3>createOutputPipe</H3><PRE>public void <B>createOutputPipe</B>(<A HREF="../../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A>&nbsp;pipeAdv,                             java.util.Set&nbsp;resolvablePeers,                             <A HREF="../../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A>&nbsp;listener)                      throws java.io.IOException</PRE><DL><DD>Attempt to ceate an OutputPipe using the specified Pipe Advertisement. When the pipe is resolved to one of the peers in the set of peer ids provided the listener will be called.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/PipeService.html#createOutputPipe(net.jxta.protocol.PipeAdvertisement, java.util.Set, net.jxta.pipe.OutputPipeListener)">createOutputPipe</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/PipeService.html" title="interface in net.jxta.pipe">PipeService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pipeAdv</CODE> - The advertisement of the pipe being resolved.<DD><CODE>resolvablePeers</CODE> - The set of peers on which the pipe may be resolved. All elements of the set <strong>must</strong> must be of type <A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer"><CODE>PeerID</CODE></A>. <strong>If the Set is empty then the pipe may be resolved to any destination peer.</strong><DD><CODE>listener</CODE> - the listener to be called when the pipe is resolved.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If the pipe cannot be created.</DL></DD></DL><HR><A NAME="createMessage()"><!-- --></A><H3>createMessage</H3><PRE>public <A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> <B>createMessage</B>()</PRE><DL><DD>Creates a new Message for sending via this Pipe Service.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/PipeService.html#createMessage()">createMessage</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/PipeService.html" title="interface in net.jxta.pipe">PipeService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A newly allocated Message.</DL></DD></DL><HR><A NAME="removeOutputPipeListener(java.lang.String, net.jxta.pipe.OutputPipeListener)"><!-- --></A><H3>removeOutputPipeListener</H3><PRE>public <A HREF="../../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A> <B>removeOutputPipeListener</B>(java.lang.String&nbsp;opID,                                                   <A HREF="../../../../net/jxta/pipe/OutputPipeListener.html" title="interface in net.jxta.pipe">OutputPipeListener</A>&nbsp;listener)</PRE><DL><DD>Remove an OutputPipeListener previously registered with  <code>createOuputputPipe</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/PipeService.html#removeOutputPipeListener(java.lang.String, net.jxta.pipe.OutputPipeListener)">removeOutputPipeListener</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/PipeService.html" title="interface in net.jxta.pipe">PipeService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>opID</CODE> - listener to remove<DD><CODE>listener</CODE> - listener to remove<DT><B>Returns:</B><DD>the listener which was removed or null if the key did not have a mapping.</DL></DD></DL><HR><A NAME="pipeResolveEvent(net.jxta.impl.pipe.PipeResolver.Event)"><!-- --></A><H3>pipeResolveEvent</H3><PRE>public boolean <B>pipeResolveEvent</B>(<A HREF="../../../../net/jxta/impl/pipe/PipeResolver.Event.html" title="class in net.jxta.impl.pipe">PipeResolver.Event</A>&nbsp;e)</PRE><DL><DD>Pipe Resolve Event<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.Listener.html#pipeResolveEvent(net.jxta.impl.pipe.PipeResolver.Event)">pipeResolveEvent</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.Listener.html" title="interface in net.jxta.impl.pipe">PipeResolver.Listener</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the event was handled otherwise false</DL></DD></DL><HR><A NAME="pipeNAKEvent(net.jxta.impl.pipe.PipeResolver.Event)"><!-- --></A><H3>pipeNAKEvent</H3><PRE>public boolean <B>pipeNAKEvent</B>(<A HREF="../../../../net/jxta/impl/pipe/PipeResolver.Event.html" title="class in net.jxta.impl.pipe">PipeResolver.Event</A>&nbsp;e)</PRE><DL><DD>A NAK Event was recieved for this pipe  <p/>We don't do anything with NAKs (yet)<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.Listener.html#pipeNAKEvent(net.jxta.impl.pipe.PipeResolver.Event)">pipeNAKEvent</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.Listener.html" title="interface in net.jxta.impl.pipe">PipeResolver.Listener</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the event was handled otherwise false</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=3 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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PipeServiceImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../net/jxta/impl/pipe/PipeResolver.Event.html" title="class in net.jxta.impl.pipe"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../net/jxta/impl/pipe/PipeServiceInterface.html" title="class in net.jxta.impl.pipe"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PipeServiceImpl.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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