|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.util.SimpleTimer2.TimedEvent
net.i2p.client.streaming.Connection.ResendPacketEvent
public class Connection.ResendPacketEvent
Coordinate the resends of a given packet
Field Summary |
---|
Fields inherited from class net.i2p.util.SimpleTimer2.TimedEvent |
---|
DEFAULT_FUZZ |
Constructor Summary | |
---|---|
Connection.ResendPacketEvent(PacketLocal packet,
long delay)
|
Method Summary | |
---|---|
long |
getNextSendTime()
|
boolean |
retransmit(boolean penalize)
Retransmit the packet if we need to. |
void |
timeReached()
Simple interface for events to be queued up and notified on expiration the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up) |
Methods inherited from class net.i2p.util.SimpleTimer2.TimedEvent |
---|
cancel, forceReschedule, reschedule, reschedule, run, schedule, setFuzz |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Connection.ResendPacketEvent(PacketLocal packet, long delay)
Method Detail |
---|
public long getNextSendTime()
public void timeReached()
SimpleTimer2.TimedEvent
timeReached
in class SimpleTimer2.TimedEvent
public boolean retransmit(boolean penalize)
penalize
- true if this retransmission is caused by a timeout, false if we
are just sending this packet instead of an ACK
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |