groovyx.gpars.scheduler
[Java] Class ResizeablePool
java.lang.Object
groovyx.gpars.scheduler.DefaultPool
groovyx.gpars.scheduler.ResizeablePool
public final class ResizeablePool
extends DefaultPool
Represents the actors' thread pool, which performs tasks on behalf of the actors.
The actors' thread pool size defaults to the n + 1, where n is the number of processors/cores available on the machine.
The VM parameter -Dgpars.poolsize can be used the configure the default size of the actors' thread pool.
The resize() and resetDefaultSize() methods can be used to configure size of the thread pool at runtime.
- Authors:
- Vaclav Pech
Date: Feb 27, 2009
Method Summary |
private static java.util.concurrent.ThreadPoolExecutor
|
createResizeablePool(boolean daemon, int poolSize)
|
KEEP_ALIVE_TIME
private static final long KEEP_ALIVE_TIME
-
ResizeablePool
public ResizeablePool(boolean daemon)
-
ResizeablePool
public ResizeablePool(boolean daemon, int poolSize)
-
createResizeablePool
private static java.util.concurrent.ThreadPoolExecutor createResizeablePool(boolean daemon, int poolSize)
-
Copyright © 2008–2013 Václav Pech. All Rights Reserved.