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

delight.concurrency.wrappers.SimpleExecutor Maven / Gradle / Ivy

The newest version!
package delight.concurrency.wrappers;

import delight.async.callbacks.SimpleCallback;

public interface SimpleExecutor {

    /**
     * Returns an object representing the thread used to execute the runnable if
     * available.
     * 
     * @param runnable
     * @return
     */
    public void execute(Runnable runnable);

    public int pendingTasks();

    /**
     * 
     * @param runnable
     * @param timeout
     *            The timeout in ms when the task should cancel.
     */
    public void execute(Runnable runnable, int timeout, Runnable onTimeout);

    public void shutdown(SimpleCallback callback);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy