📄 inputpipeimpl.html
字号:
<DL><DL></DL></DL><HR><A NAME="pipeAdv"><!-- --></A><H3>pipeAdv</H3><PRE>protected <A HREF="../../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> <B>pipeAdv</B></PRE><DL><DL></DL></DL><HR><A NAME="pipeID"><!-- --></A><H3>pipeID</H3><PRE>protected <A HREF="../../../../net/jxta/pipe/PipeID.html" title="class in net.jxta.pipe">PipeID</A> <B>pipeID</B></PRE><DL><DL></DL></DL><HR><A NAME="closed"><!-- --></A><H3>closed</H3><PRE>protected volatile boolean <B>closed</B></PRE><DL><DL></DL></DL><HR><A NAME="listener"><!-- --></A><H3>listener</H3><PRE>protected <A HREF="../../../../net/jxta/pipe/PipeMsgListener.html" title="interface in net.jxta.pipe">PipeMsgListener</A> <B>listener</B></PRE><DL><DL></DL></DL><HR><A NAME="queue"><!-- --></A><H3>queue</H3><PRE>protected <A HREF="../../../../net/jxta/impl/util/UnbiasedQueue.html" title="class in net.jxta.impl.util">UnbiasedQueue</A> <B>queue</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="InputPipeImpl(net.jxta.impl.pipe.PipeRegistrar, net.jxta.protocol.PipeAdvertisement)"><!-- --></A><H3>InputPipeImpl</H3><PRE><B>InputPipeImpl</B>(<A HREF="../../../../net/jxta/impl/pipe/PipeRegistrar.html" title="interface in net.jxta.impl.pipe">PipeRegistrar</A> r, <A HREF="../../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> adv) throws java.io.IOException</PRE><DL><DD>Constructor for the InputPipeImpl object<P><DT><B>Parameters:</B><DD><CODE>r</CODE> - pipe resolver<DD><CODE>adv</CODE> - pipe advertisement</DL><HR><A NAME="InputPipeImpl(net.jxta.impl.pipe.PipeRegistrar, net.jxta.protocol.PipeAdvertisement, net.jxta.pipe.PipeMsgListener)"><!-- --></A><H3>InputPipeImpl</H3><PRE><B>InputPipeImpl</B>(<A HREF="../../../../net/jxta/impl/pipe/PipeRegistrar.html" title="interface in net.jxta.impl.pipe">PipeRegistrar</A> r, <A HREF="../../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> adv, <A HREF="../../../../net/jxta/pipe/PipeMsgListener.html" title="interface in net.jxta.pipe">PipeMsgListener</A> listener) throws java.io.IOException</PRE><DL><DD>Constructor for the InputPipeImpl object<P><DT><B>Parameters:</B><DD><CODE>r</CODE> - pipe resolver<DD><CODE>adv</CODE> - pipe advertisement<DD><CODE>listener</CODE> - listener to receive messages</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><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>() throws java.lang.Throwable</PRE><DL><DD> <p/>Closes the pipe.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Throwable</CODE></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 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="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> msg, <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> srcAddr, <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> 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>msg</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="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><!-- ========= 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InputPipeImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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"> PREV CLASS <A HREF="../../../../net/jxta/impl/pipe/NonBlockingOutputPipe.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> <A HREF="InputPipeImpl.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -