Package net.i2p.client.streaming.impl
Class Connection.RetransmitEvent
java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.client.streaming.impl.Connection.RetransmitEvent
- All Implemented Interfaces:
Runnable
- Enclosing class:
- Connection
class Connection.RetransmitEvent extends SimpleTimer2.TimedEvent
A single retransmit timer for all packets.
See RFCs 5681 and 6298.
- Since:
- 0.9.46
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RetransmitEvent()
-
Method Summary
Modifier and Type Method Description boolean
cancel()
void
pushBackRTO(int rto)
boolean
scheduleIfNotRunning(long delay)
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
forceReschedule, reschedule, reschedule, run, schedule, setFuzz
-
Constructor Details
-
RetransmitEvent
RetransmitEvent()
-
-
Method Details
-
cancel
public boolean cancel()- Overrides:
cancel
in classSimpleTimer2.TimedEvent
- Returns:
- true if cancelled
-
scheduleIfNotRunning
public boolean scheduleIfNotRunning(long delay) -
pushBackRTO
public void pushBackRTO(int rto) -
timeReached
public void timeReached()Description copied from class:SimpleTimer2.TimedEvent
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)- Specified by:
timeReached
in classSimpleTimer2.TimedEvent
-