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

io.logspace.jvm.agent.shaded.quartz.spi.ThreadExecutor Maven / Gradle / Ivy

The newest version!
package io.logspace.jvm.agent.shaded.quartz.spi;

/**
 * Allows different strategies for scheduling threads. The {@link #initialize()}
 * method is required to be called before the first call to
 * {@link #execute(Thread)}. The Thread containing the work to be performed is
 * passed to execute and the work is scheduled by the underlying implementation.
 *
 * @author matt.accola
 * @version $Revision$ $Date$
 */
public interface ThreadExecutor {

    /**
     * Submit a task for execution
     *
     * @param thread the thread to execute
     */
    void execute(Thread thread);

    /**
     * Initialize any state prior to calling {@link #execute(Thread)}
     */
    void initialize();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy