| |
|
| java.lang.Object org.directwebremoting.impl.DefaultRemoter org.directwebremoting.contrib.ParallelDefaultRemoter
ParallelDefaultRemoter | public class ParallelDefaultRemoter extends DefaultRemoter (Code) | | This implementation is not officially supported, and may be removed
at some point in the future.
Remoter implementation executing in parallel a group of remote calls.
author: Claude Hussenet |
ParallelDefaultRemoter | public ParallelDefaultRemoter()(Code) | | Initialize thread pool with :
Core pool size : 10;
Maximum pool size = 100;
Keep alive time = 5000(ms);
Timeout = 10000(ms);
|
execute | public Replies execute(Calls calls)(Code) | | Execute a set of remote calls in parallel and generate set of reply data
for later conversion to whatever wire protocol we are using today.
Parameters: calls - The set of calls to execute in parallel A set of reply data objects |
setParallelDefaultRemoterCorePoolsize | public void setParallelDefaultRemoterCorePoolsize(int corePoolsize)(Code) | | Sets the core number of threads.
Parameters: corePoolsize - How many threads do we use |
setParallelDefaultRemoterKeepAliveTime | public void setParallelDefaultRemoterKeepAliveTime(long keepAliveTime)(Code) | | Sets the time limit in (ms) for which threads may remain idle before being
terminated.
Parameters: keepAliveTime - Time in (ms) |
setParallelDefaultRemoterMaximumPoolsize | public void setParallelDefaultRemoterMaximumPoolsize(int maximumPoolsize)(Code) | | Sets the maximum allowed number of threads.
Parameters: maximumPoolsize - Maximum of threads |
setParallelDefaultRemoterTimeout | public void setParallelDefaultRemoterTimeout(long timeout)(Code) | | Sets the maximum time to wait in (ms)
Parameters: timeout - Time in (ms) |
|
|
|