SMILA (incubation) API documentation

org.eclipse.smila.workermanager.internal
Class WorkerPool

java.lang.Object
  extended by org.eclipse.smila.workermanager.internal.WorkerPool

public class WorkerPool
extends java.lang.Object

Thread pool for executing TaskWorkers.


Constructor Summary
WorkerPool()
          Worker pool with default configuration.
 
Method Summary
 void close()
          closes the thread pool.
 java.util.Collection<WorkerRunner> getCompleted()
           
 void submit(WorkerRunner taskWorker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkerPool

public WorkerPool()
Worker pool with default configuration.

Method Detail

getCompleted

public java.util.Collection<WorkerRunner> getCompleted()
Returns:
all completed TaskWorker instances

submit

public void submit(WorkerRunner taskWorker)
Parameters:
taskWorker - the TaskWorker to be executed.

close

public void close()
closes the thread pool.


SMILA (incubation) API documentation