|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.util.pipe.reliable.FlowControl
public abstract class FlowControl
A basis for any flow control module to be plugged into ReliableOutputStream. Synchronization can is assumed to be provided externaly. However all implementations are required to allow the getRwindow() method to be called at any time without synchronization.
Constructor Summary | |
---|---|
FlowControl()
|
Method Summary | |
---|---|
void |
ackEventBegin()
Indicates that a new ack message is being processed. |
abstract int |
ackEventEnd(int rQSize,
long aveRTT,
long lastRTT)
Concludes rwindow update for this ackEvent. |
abstract int |
getRwindow()
Returns the rwindow size that this flow control module suggests to use at this point in time. |
void |
packetACKed(int seqnum)
Invoked for each packet that is believed to have been received per the current ack message. |
void |
packetMissing(int seqnum)
Invoked for each packet that is believed to have been lost per the current ack message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowControl()
Method Detail |
---|
public abstract int getRwindow()
public void ackEventBegin()
public void packetACKed(int seqnum)
seqnum
- The sequence number of the received packet.public void packetMissing(int seqnum)
seqnum
- The sequence number of the missing packet.public abstract int ackEventEnd(int rQSize, long aveRTT, long lastRTT)
rQSize
- the last known value of the remote queue size.aveRTT
- the latest estimate of the average RTT.lastRTT
- the RTT inferred from the most recent ACK message.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |