net.i2p.client.streaming
class Connection.ResendPacketEvent extends SimpleTimer2.TimedEvent
DEFAULT_FUZZ
Constructor and Description |
---|
Connection.ResendPacketEvent(PacketLocal packet,
long delay) |
Modifier and Type | Method and Description |
---|---|
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)
|
cancel, forceReschedule, reschedule, reschedule, run, schedule, setFuzz
public Connection.ResendPacketEvent(PacketLocal packet, long delay)
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