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.
Modifiers | Name | Description |
---|---|---|
private static long |
KEEP_ALIVE_TIME |
Fields inherited from class | Fields |
---|---|
class DefaultPool |
SHUTDOWN_TIMEOUT, pool, threadCount |
Constructor and description |
---|
ResizeablePool
(boolean daemon) Creates the pool with default number of threads. |
ResizeablePool
(boolean daemon, int poolSize) Creates the pool with specified number of threads. |
Type | Name and description |
---|---|
private static java.util.concurrent.ThreadPoolExecutor |
createResizeablePool(boolean daemon, int poolSize) Creates a fixed-thread pool of given size. |
Methods inherited from class | Name |
---|---|
class DefaultPool |
createPool, createThreadName, execute, getExecutorService, getPoolSize, resetDefaultSize, resize, shutdown |
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates the pool with default number of threads.
daemon
- Sets the daemon flag of threads in the pool.Creates the pool with specified number of threads.
daemon
- Sets the daemon flag of threads in the pool.poolSize
- The required size of the poolCreates a fixed-thread pool of given size. Each thread will have the uncaught exception handler set to print the unhandled exception to standard error output.
daemon
- Sets the daemon flag of threads in the pool.poolSize
- The required pool sizeCopyright © 2008–2014 Václav Pech. All Rights Reserved.