- All Known Implementing Classes:
SchedulerChooser.NullScheduler, SchedulerClosed, SchedulerClosing, SchedulerConnectedBulk, SchedulerConnecting, SchedulerDead, SchedulerHardDisconnected, SchedulerImpl, SchedulerPreconnect, SchedulerReceived
public interface TaskScheduler
Coordinates what we do 'next'. The scheduler used by a connection is selected based upon its current state.
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.
Method Details
eventOccurred
An event has occurred (timeout, message sent, or message received), so schedule what to do next based on our current state.- Parameters:
con- the connection on which the event occurred
accept
Determine whether this scheduler is fit to operate against the given connection.- Parameters:
con- the connection to check- Returns:
- true if this scheduler should handle the connection