|
Project 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
net.jxta.impl.util.pipe.reliable.AdaptiveFlowControl
public class AdaptiveFlowControl
Field Summary | |
---|---|
(package private) static int |
DEFAULT_RWINDOW
|
(package private) boolean |
fastMode
|
(package private) int |
takeAchance
|
Constructor Summary | |
---|---|
AdaptiveFlowControl()
Constructs an adaptive flow control module with an initial rwindow of DEFAULT_RWINDOW. |
|
AdaptiveFlowControl(int rwindow)
|
Method Summary | |
---|---|
void |
ackEventBegin()
{ @inheritDoc } |
int |
ackEventEnd(int rQSize,
long aveRTT,
long lastRTT)
{ @inheritDoc } |
int |
getRwindow()
{ @inheritDoc } |
void |
packetACKed(int seqnum)
{ @inheritDoc } |
void |
packetMissing(int seqnum)
{ @inheritDoc } |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int DEFAULT_RWINDOW
boolean fastMode
int takeAchance
Constructor Detail |
---|
public AdaptiveFlowControl()
public AdaptiveFlowControl(int rwindow)
rwindow
- Use this value as the initial value (not recommended
except for experimental purposes.Method Detail |
---|
public int getRwindow()
getRwindow
in class FlowControl
public void ackEventBegin()
ackEventBegin
in class FlowControl
public void packetACKed(int seqnum)
packetACKed
in class FlowControl
seqnum
- The sequence number of the received packet.public void packetMissing(int seqnum)
packetMissing
in class FlowControl
seqnum
- The sequence number of the missing packet.public int ackEventEnd(int rQSize, long aveRTT, long lastRTT)
ackEventEnd
in class FlowControl
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.
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |