public class NonParallelExecutor extends Object implements ParallelExecutor
ParallelExecutor
used when the thread pool is disabled.Constructor and Description |
---|
NonParallelExecutor() |
Modifier and Type | Method and Description |
---|---|
<T> T |
invoke(Class<T> proxyType,
Invokable<T> invocable)
As with
ParallelExecutor.invoke(org.apache.tapestry5.ioc.Invokable) , but the result is wrapped inside a thunk. |
<T> Future<T> |
invoke(Invokable<T> invocable)
Submits the invocable object to be executed in a pooled thread.
|
public NonParallelExecutor()
public <T> Future<T> invoke(Invokable<T> invocable)
ParallelExecutor
PerthreadManager.cleanup()
is invoked after the operation completes.invoke
in interface ParallelExecutor
invocable
- to execute in a threadpublic <T> T invoke(Class<T> proxyType, Invokable<T> invocable)
ParallelExecutor
ParallelExecutor.invoke(org.apache.tapestry5.ioc.Invokable)
, but the result is wrapped inside a thunk. Invoking methods on the thunk will block until the value
is available.invoke
in interface ParallelExecutor
proxyType
- return type, used to create the thunkinvocable
- object that will eventually execute and return a value${project.version} - Copyright © 2003-2015 The Apache Software Foundation.