@Immutable public final class TaskWrapperFactory extends Object implements ITaskWrapperFactory
Constructor and Description |
---|
TaskWrapperFactory() |
Modifier and Type | Method and Description |
---|---|
<V> ITaskWrapper |
newWrapper(Callable<V> task)
Create a task wrapper for callable tasks.
|
<V> ITaskWrapper |
newWrapper(Callable<V> task,
ITaskResultProcessor<V> processor)
Create a task wrapper for callable tasks.
|
ITaskWrapper |
newWrapper(Runnable task)
Create a task wrapper for runnable tasks.
|
ITaskWrapper |
newWrapper(Runnable task,
ITaskResultProcessor<Void> processor)
Create a task wrapper for runnable tasks.
|
public <V> ITaskWrapper newWrapper(Callable<V> task)
ITaskWrapperFactory
The result is discarded.
newWrapper
in interface ITaskWrapperFactory
V
- The type of resulttask
- The task to wrap.public ITaskWrapper newWrapper(Runnable task)
ITaskWrapperFactory
The result is discarded.
newWrapper
in interface ITaskWrapperFactory
task
- The task to wrap.public <V> ITaskWrapper newWrapper(Callable<V> task, ITaskResultProcessor<V> processor)
ITaskWrapperFactory
newWrapper
in interface ITaskWrapperFactory
V
- The type of resulttask
- The task to wrap.processor
- The result processor.public ITaskWrapper newWrapper(Runnable task, ITaskResultProcessor<Void> processor)
ITaskWrapperFactory
newWrapper
in interface ITaskWrapperFactory
task
- The task to wrap.processor
- The result processor.Copyright © 2016. All Rights Reserved.