forked from I2P_Developers/i2p.i2p
* General cleanup on streaming and ministreaming.
This fixes some compile warnings, and prepares for a larger fix.
There is no code-flow changes, just lint. One warning remains as I am
unsure exactly how to solve the problem yet.
23 lines
572 B
Java
23 lines
572 B
Java
package net.i2p.client.streaming;
|
|
|
|
/**
|
|
* Coordinates what we do 'next'. The scheduler used by a connection is
|
|
* selected based upon its current state.
|
|
*
|
|
*/
|
|
public interface TaskScheduler {
|
|
/**
|
|
* An event has occurred (timeout, message sent, or message received),
|
|
* so schedule what to do next based on our current state.
|
|
*
|
|
*/
|
|
public void eventOccurred(Connection con);
|
|
|
|
/**
|
|
* Determine whether this scheduler is fit to operate against the
|
|
* given connection
|
|
*
|
|
*/
|
|
public boolean accept(Connection con);
|
|
}
|