java.lang.Object
net.i2p.client.streaming.impl.SchedulerChooser.NullScheduler
- All Implemented Interfaces:
TaskScheduler
- Enclosing class:
SchedulerChooser
A scheduler that drops every task.
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateA scheduler that runs nothing, used as a placeholder.Method Summary
All MethodsModifier and TypeMethodDescriptionbooleanaccept(Connection con) Determine whether this scheduler is fit to operate against the given connection.voideventOccurred(Connection con) An event has occurred (timeout, message sent, or message received), so schedule what to do next based on our current state.
Constructor Details
NullScheduler
private NullScheduler()A scheduler that runs nothing, used as a placeholder.
Method Details
eventOccurred
Description copied from interface:TaskSchedulerAn event has occurred (timeout, message sent, or message received), so schedule what to do next based on our current state.- Specified by:
eventOccurredin interfaceTaskScheduler- Parameters:
con- the connection on which the event occurred
accept
Description copied from interface:TaskSchedulerDetermine whether this scheduler is fit to operate against the given connection.- Specified by:
acceptin interfaceTaskScheduler- Parameters:
con- the connection to check- Returns:
- true if this scheduler should handle the connection