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

com.meliorbis.numerics.threading.Executor Maven / Gradle / Ivy

Go to download

A library for working with large multi-dimensional arrays and the functions they represent

There is a newer version: 1.2
Show newest version
/**
 * 
 */
package com.meliorbis.numerics.threading;

import java.util.List;

/**
 * Can execute callables
 * 
 * @author Tobias Grasl
 */
public interface Executor extends Cloneable
{
	/**
	 * Executes the provided actions and waits for them all to finish before returning
	 * 
	 * @param actions_ The callables to be executed
	 */
	public void executeAndWait(List actions_);

    /**
     * Executes the provided tasks and waits for them all to finish before returning
     *
     * @param tasks_ The callables to be executed
     * @param  The type of the elements for which a task is to be executed
     *
     * @return The list of results from the tasks, in the order of the list of tasks
     */
    public  List executeAndGet(List> tasks_);

	/**
	 * Cleans up this executor and renders it unusable
	 */
	public void destroy();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy