|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.ioc.internal.services.ParallelExecutorImpl
public class ParallelExecutorImpl
| Constructor Summary | |
|---|---|
ParallelExecutorImpl(java.util.concurrent.ExecutorService executorService,
ThunkCreator thunkCreator,
PerthreadManager perthreadManager)
|
|
| Method Summary | ||
|---|---|---|
|
invoke(java.lang.Class<T> proxyType,
Invokable<T> invocable)
As with ParallelExecutor.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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParallelExecutorImpl(java.util.concurrent.ExecutorService executorService,
ThunkCreator thunkCreator,
PerthreadManager perthreadManager)
| Method Detail |
|---|
public <T> java.util.concurrent.Future<T> invoke(Invokable<T> invocable)
ParallelExecutorPerthreadManager.cleanup() is invoked after the operation completes.
invoke in interface ParallelExecutorinvocable - to execute in a thread
public <T> T invoke(java.lang.Class<T> proxyType,
Invokable<T> invocable)
ParallelExecutorParallelExecutor.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 ParallelExecutorproxyType - 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 | |||||||||