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

📄 wirepipe.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="finalize()"><!-- --></A><H3>finalize</H3><PRE>protected void <B>finalize</B>()</PRE><DL><DD>  <p/>Closes the pipe.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="register(net.jxta.pipe.InputPipe)"><!-- --></A><H3>register</H3><PRE>public boolean <B>register</B>(<A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A>&nbsp;wireinputpipe)</PRE><DL><DD>Register that this peer is an InputPipe for the specified Pipe ID.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/impl/pipe/PipeRegistrar.html#register(net.jxta.pipe.InputPipe)">register</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/impl/pipe/PipeRegistrar.html" title="interface in net.jxta.impl.pipe">PipeRegistrar</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>wireinputpipe</CODE> - the pipe object</DL></DD></DL><HR><A NAME="forget(net.jxta.pipe.InputPipe)"><!-- --></A><H3>forget</H3><PRE>public boolean <B>forget</B>(<A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A>&nbsp;wireinputpipe)</PRE><DL><DD>This peer is no longer listening on the specified pipe.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/impl/pipe/PipeRegistrar.html#forget(net.jxta.pipe.InputPipe)">forget</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/impl/pipe/PipeRegistrar.html" title="interface in net.jxta.impl.pipe">PipeRegistrar</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the pipe was removed otherwise false.</DL></DD></DL><HR><A NAME="waitForMessage()"><!-- --></A><H3>waitForMessage</H3><PRE>public <A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> <B>waitForMessage</B>()                       throws java.lang.InterruptedException</PRE><DL><DD>wait for a message to be received<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html#waitForMessage()">waitForMessage</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Message  message received<DT><B>Throws:</B><DD><CODE>java.lang.InterruptedException</CODE> - If another thread interrupted while we  were waiting for a message.</DL></DD></DL><HR><A NAME="poll(int)"><!-- --></A><H3>poll</H3><PRE>public <A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> <B>poll</B>(int&nbsp;timeout)             throws java.lang.InterruptedException</PRE><DL><DD>Poll for a message from the pipe. If there is no message available then wait the specified amount of time. if timeout is zero then wait indefinitely.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html#poll(int)">poll</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>timeout</CODE> - minimum time poll is supposed to block (in milliseconds)<DT><B>Returns:</B><DD>message received or null if the pipe has closed or the timeout expires without a message being delivered.<DT><B>Throws:</B><DD><CODE>java.lang.InterruptedException</CODE> - If another thread interrupted while we  were waiting for a message.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()</PRE><DL><DD>Close the pipe. No additional messages will be received on this pipe.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getType()"><!-- --></A><H3>getType</H3><PRE>public java.lang.String <B>getType</B>()</PRE><DL><DD>Gets the pipe type<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html#getType()">getType</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The type</DL></DD></DL><HR><A NAME="getPipeID()"><!-- --></A><H3>getPipeID</H3><PRE>public <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> <B>getPipeID</B>()</PRE><DL><DD>Gets the pipe id<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html#getPipeID()">getPipeID</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The type</DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>Gets the pipe name<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The name</DL></DD></DL><HR><A NAME="getAdvertisement()"><!-- --></A><H3>getAdvertisement</H3><PRE>public <A HREF="../../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> <B>getAdvertisement</B>()</PRE><DL><DD>Gets the pipe advertisement<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html#getAdvertisement()">getAdvertisement</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The advertisement</DL></DD></DL><HR><A NAME="processIncomingMessage(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>processIncomingMessage</H3><PRE>public void <B>processIncomingMessage</B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;message,                                   <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;srcAddr,                                   <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;dstAddr)</PRE><DL><DD>This method is invoked by the EndpointService for each incoming message which is addressed to this listener.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/endpoint/EndpointListener.html#processIncomingMessage(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress)">processIncomingMessage</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - Incoming message<DD><CODE>srcAddr</CODE> - Endpoint Address of the source of the message<DD><CODE>dstAddr</CODE> - Endpoint Address of the destination of the message</DL></DD></DL><HR><A NAME="processIncomingMessage(net.jxta.endpoint.Message, net.jxta.impl.pipe.WireHeader, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>processIncomingMessage</H3><PRE>void <B>processIncomingMessage</B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;message,                            <A HREF="../../../../net/jxta/impl/pipe/WireHeader.html" title="class in net.jxta.impl.pipe">WireHeader</A>&nbsp;header,                            <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;srcAddr,                            <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;dstAddr)</PRE><DL><DD>local version with the wire header already parsed. There are two paths  to this point; via the local endpoint listener or via the general  propagation listener in WirePipeImpl.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="repropagate(net.jxta.endpoint.Message, net.jxta.impl.pipe.WireHeader)"><!-- --></A><H3>repropagate</H3><PRE>void <B>repropagate</B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;message,                 <A HREF="../../../../net/jxta/impl/pipe/WireHeader.html" title="class in net.jxta.impl.pipe">WireHeader</A>&nbsp;header)</PRE><DL><DD>Repropagate a message<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sendMessage(net.jxta.endpoint.Message, java.util.Set)"><!-- --></A><H3>sendMessage</H3><PRE>void <B>sendMessage</B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,                 java.util.Set&nbsp;peers)           throws java.io.IOException</PRE><DL><DD>Send the message<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="createMsgId()"><!-- --></A><H3>createMsgId</H3><PRE>java.lang.String <B>createMsgId</B>()</PRE><DL><DD>Create a unique (mostly) identifier for this message<P><DD><DL></DL></DD><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=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/WirePipe.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/WireHeader.html" title="class in net.jxta.impl.pipe"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../net/jxta/impl/pipe/WirePipeImpl.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="WirePipe.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 + -