java.lang.Object
net.i2p.client.streaming.impl.SchedulerImpl
net.i2p.client.streaming.impl.SchedulerDead
- All Implemented Interfaces:
TaskScheduler
Scheduler used for after the final timeout has passed or the connection was reset.
Entry conditions:
- Both sides have closed and ACKed and the timeout has passed.
or - A RESET was received
Events:
- None
Next states:
- None
Field Summary
Fields inherited from class SchedulerImpl
_context, _logModifier and TypeFieldDescriptionprotected final I2PAppContextApplication context the scheduled connections live in.protected final LogLogger scoped to this scheduler class.Constructor Summary
ConstructorsConstructorDescriptionSets up the scheduler for connections that are finished and awaiting cleanup.Method Summary
All MethodsModifier and TypeMethodDescriptionbooleanaccept(Connection con) Accept connections where the final timeout has passed or a RESET was received.voideventOccurred(Connection con) Handle an event on a dead connection.Methods inherited from class SchedulerImpl
reschedule, toStringModifier and TypeMethodDescriptionprotected voidreschedule(long msToWait, Connection con) Schedule a connection event to occur after the specified delay.toString()Name of the scheduler class.
Constructor Details
SchedulerDead
Sets up the scheduler for connections that are finished and awaiting cleanup.- Parameters:
ctx- the application context passed to the superclass
Method Details
accept
Accept connections where the final timeout has passed or a RESET was received.- Parameters:
con- the connection to check- Returns:
- true if the connection is dead
eventOccurred
Handle an event on a dead connection. Completes the disconnect.- Parameters:
con- the connection that had an event