Search this API

y.util
Class MultiThreadedTaskExecutorFactory

java.lang.Object
  extended by y.util.TaskExecutorFactory
      extended by y.util.MultiThreadedTaskExecutorFactory

public class MultiThreadedTaskExecutorFactory
extends TaskExecutorFactory

Provides a shared instance of a factory that creates TaskExecutors that execute tasks in parallel.

 

Field Summary
static TaskExecutorFactory ADVANCED_MULTI_THREADED
          Shared instance of a TaskExecutorFactory that creates TaskExecutors that execute tasks in parallel, i.e., multi-threaded.
 
Fields inherited from class y.util.TaskExecutorFactory
DEFAULT, MULTI_THREADED, SINGLE_THREADED
 
Constructor Summary
MultiThreadedTaskExecutorFactory()
          Initializes a new MultiThreadedTaskExecutorFactory instance.
 
Method Summary
 TaskExecutor createExecutor()
          Creates a new TaskExecutor.
 
Methods inherited from class y.util.TaskExecutorFactory
getDefault, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADVANCED_MULTI_THREADED

public static final TaskExecutorFactory ADVANCED_MULTI_THREADED
Shared instance of a TaskExecutorFactory that creates TaskExecutors that execute tasks in parallel, i.e., multi-threaded. Note that this implementation is more efficient than that of TaskExecutorFactory.MULTI_THREADED but requires Java 1.5.

Constructor Detail

MultiThreadedTaskExecutorFactory

public MultiThreadedTaskExecutorFactory()
Initializes a new MultiThreadedTaskExecutorFactory instance.

Method Detail

createExecutor

public TaskExecutor createExecutor()
Description copied from class: TaskExecutorFactory
Creates a new TaskExecutor.

Specified by:
createExecutor in class TaskExecutorFactory
Returns:
A new TaskExecutor.

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