📄 reliableoutputstream.html
字号:
<TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ReliableOutputStream(net.jxta.impl.util.pipe.reliable.Outgoing)"><!-- --></A><H3>ReliableOutputStream</H3><PRE>public <B>ReliableOutputStream</B>(<A HREF="../../../../../../net/jxta/impl/util/pipe/reliable/Outgoing.html" title="interface in net.jxta.impl.util.pipe.reliable">Outgoing</A> outgoing)</PRE><DL></DL><HR><A NAME="ReliableOutputStream(net.jxta.impl.util.pipe.reliable.Outgoing, net.jxta.impl.util.pipe.reliable.FlowControl)"><!-- --></A><H3>ReliableOutputStream</H3><PRE>public <B>ReliableOutputStream</B>(<A HREF="../../../../../../net/jxta/impl/util/pipe/reliable/Outgoing.html" title="interface in net.jxta.impl.util.pipe.reliable">Outgoing</A> outgoing, <A HREF="../../../../../../net/jxta/impl/util/pipe/reliable/FlowControl.html" title="class in net.jxta.impl.util.pipe.reliable">FlowControl</A> fc)</PRE><DL></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="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>() throws java.io.IOException</PRE><DL><DD> <p/>We don't current support linger.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="setClosing()"><!-- --></A><H3>setClosing</H3><PRE>public void <B>setClosing</B>()</PRE><DL><DD>indicate that we're in the process of closing. To respect the semantics of close()/isClosed(), we do not set the closed flag, yet. Instead, we set the flag "closing", which simply garantees that no new message will be queued. This, in combination with getSequenceNumber and getMaxAck, and waitQevent, enables fine grain control of the tear down process.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="write(int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(int c) throws java.io.IOException</PRE><DL><DD><P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="write(byte[], int, int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(byte[] b, int off, int len) throws java.io.IOException</PRE><DL><DD><P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="send(net.jxta.endpoint.Message)"><!-- --></A><H3>send</H3><PRE>public int <B>send</B>(<A HREF="../../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg) throws java.io.IOException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getMaxAck()"><!-- --></A><H3>getMaxAck</H3><PRE>public int <B>getMaxAck</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSeqNumber()"><!-- --></A><H3>getSeqNumber</H3><PRE>public int <B>getSeqNumber</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isQueueFull()"><!-- --></A><H3>isQueueFull</H3><PRE>public boolean <B>isQueueFull</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="waitQueueEvent(long)"><!-- --></A><H3>waitQueueEvent</H3><PRE>public void <B>waitQueueEvent</B>(long timeout) throws java.lang.InterruptedException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.InterruptedException</CODE></DL></DD></DL><HR><A NAME="recv(net.jxta.endpoint.Message)"><!-- --></A><H3>recv</H3><PRE>public void <B>recv</B>(<A HREF="../../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../../net/jxta/impl/util/pipe/reliable/Incoming.html" title="interface in net.jxta.impl.util.pipe.reliable">Incoming</A></CODE></B></DD><DD>Receive this incoming message. This method should return quickly. If the receiving class needs to do substantial work with incoming messages, it should insert this message into a queue and then drain the queue processing the messages in its own thread.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../net/jxta/impl/util/pipe/reliable/Incoming.html#recv(net.jxta.endpoint.Message)">recv</A></CODE> in interface <CODE><A HREF="../../../../../../net/jxta/impl/util/pipe/reliable/Incoming.html" title="interface in net.jxta.impl.util.pipe.reliable">Incoming</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="ackReceived(int, int[])"><!-- --></A><H3>ackReceived</H3><PRE>public void <B>ackReceived</B>(int seqnum, int[] sackList)</PRE><DL><DD>Process an ACK Message. We remove ACKed messages from the retry queue. We only acknowledge messages received in sequence. The seqnum is for the largest unacknowledged seqnum the receipient has received. The sackList is a sequence of all of the received messages in the sender's input Q. All will be sequence numbers higher than the sequential ACK seqnum. Recepients are passive and only ack upon the receipt of an in sequence message. They depend on our RTO to fill holes in message sequences.<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> </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/ReliableOutputStream.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"> <A HREF="../../../../../../net/jxta/impl/util/pipe/reliable/ReliableInputStream.html" title="class in net.jxta.impl.util.pipe.reliable"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="ReliableOutputStream.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 + -