Class NonParallelExecutor
java.lang.Object
org.apache.tapestry5.ioc.internal.services.NonParallelExecutor
- All Implemented Interfaces:
ParallelExecutor
Implementation of
ParallelExecutor used when the thread pool is disabled.- Since:
- 5.1.0.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TAs withParallelExecutor.invoke(org.apache.tapestry5.ioc.Invokable), but the result is wrapped inside a thunk.<T> Future<T>Submits the invocable object to be executed in a pooled thread.
-
Constructor Details
-
NonParallelExecutor
public NonParallelExecutor()
-
-
Method Details
-
invoke
Description copied from interface:ParallelExecutorSubmits the invocable object to be executed in a pooled thread. Returns a Future object representing the eventual result of the invocable's operation. The actual operation will be wrapped such thatPerthreadManager.cleanup()is invoked after the operation completes.- Specified by:
invokein interfaceParallelExecutor- Parameters:
invocable- to execute in a thread- Returns:
- Future result of that invocation
-
invoke
Description copied from interface:ParallelExecutorAs withParallelExecutor.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.- Specified by:
invokein interfaceParallelExecutor- Parameters:
proxyType- return type, used to create the thunkinvocable- object that will eventually execute and return a value- Returns:
- the thunk
-