|
RuneHive-Game
|
A class which manages the pool of request workers. More...
Public Member Functions | |
| RequestWorkerPool () | |
| The request worker pool. | |
| void | start () throws Exception |
| Starts the threads in the pool. | |
Private Attributes | |
| final ExecutorService | service |
| The executor service. | |
| final List< OnDemandRequestWorker > | workers = new ArrayList<OnDemandRequestWorker>() |
| A list of request workers. | |
Static Private Attributes | |
| static final int | THREADS_PER_REQUEST_TYPE = Runtime.getRuntime().availableProcessors() |
| The number of threads per request type. | |
A class which manages the pool of request workers.
Definition at line 16 of file RequestWorkerPool.java.
| dev.advo.fs.dispatch.RequestWorkerPool.RequestWorkerPool | ( | ) |
The request worker pool.
Definition at line 36 of file RequestWorkerPool.java.
References service, and THREADS_PER_REQUEST_TYPE.
| void dev.advo.fs.dispatch.RequestWorkerPool.start | ( | ) | throws Exception |
Starts the threads in the pool.
| Exception | if the file system cannot be created. |
Definition at line 45 of file RequestWorkerPool.java.
References service, THREADS_PER_REQUEST_TYPE, and workers.
|
private |
The executor service.
Definition at line 26 of file RequestWorkerPool.java.
Referenced by RequestWorkerPool(), and start().
|
staticprivate |
The number of threads per request type.
Definition at line 21 of file RequestWorkerPool.java.
Referenced by RequestWorkerPool(), and start().
|
private |
A list of request workers.
Definition at line 31 of file RequestWorkerPool.java.
Referenced by start().