|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParallelExecutor
A service that allows work to occur in parallel using a thread pool. The thread pool is started lazily, and is shutdown when the Registry is shutdown.
IOCSymbols
Method Summary | ||
---|---|---|
|
invoke(Class<T> proxyType,
Invokable<T> invocable)
As with invoke(org.apache.tapestry5.ioc.Invokable) , but the result is wrapped inside a thunk. |
|
|
invoke(Invokable<T> invocable)
Submits the invocable object to be executed in a pooled thread. |
Method Detail |
---|
<T> Future<T> invoke(Invokable<T> invocable)
PerthreadManager.cleanup()
is invoked after the operation completes.
T
- invocable
- to execute in a thread
<T> T invoke(Class<T> proxyType, Invokable<T> invocable)
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.
T
- proxyType
- return type, used to create the thunkinvocable
- object that will eventually execute and return a value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |