Files
i2p.i2p/apps/streaming/java/src/net/i2p/client/streaming/TaskScheduler.java
sponge c7541f819a 2009-06-30 sponge
* 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.
2009-06-30 04:44:13 +00:00

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);
}