Search this API

y.util
Interface TaskExecutor


public interface TaskExecutor

Executes several tasks. Tasks are represented by Runnables.

Note that the tasks may be executed parallel and are expected to synchronize shared resources themselves.

See Also:
TaskExecutorFactory
 
Your browser does not support SVG content.

Method Summary
 void dispose()
          Disposes the executor and frees the used resources.
 void execute(java.util.List tasks)
          Executes all Runnables in the given list and returns as soon as all tasks are finished.
 

Method Detail

execute

void execute(java.util.List tasks)
Executes all Runnables in the given list and returns as soon as all tasks are finished.

Parameters:
tasks - The list of Runnables that shall be executed.

dispose

void dispose()
Disposes the executor and frees the used resources.


© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.