All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.i2p.client.streaming.impl.TaskScheduler Maven / Gradle / Ivy

There is a newer version: 2.8.0
Show newest version
package net.i2p.client.streaming.impl;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy