|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.DynamicPooledExecutor
public class DynamicPooledExecutor
DynamicPooledExecutor implements an executor, which dynamically
adjusts its maximum number of threads according to the number of available
processors returned by Runtime.availableProcessors().
| Nested Class Summary | |
|---|---|
static interface |
DynamicPooledExecutor.Command
|
static class |
DynamicPooledExecutor.Result
|
| Constructor Summary | |
|---|---|
DynamicPooledExecutor()
Creates a new DynamicPooledExecutor. |
|
| Method Summary | |
|---|---|
void |
execute(java.lang.Runnable command)
Executes the given command. |
DynamicPooledExecutor.Result[] |
executeAndWait(DynamicPooledExecutor.Command[] commands)
Executes a set of commands and waits until all commands have been executed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicPooledExecutor()
| Method Detail |
|---|
public void execute(java.lang.Runnable command)
command - the command to execute.public DynamicPooledExecutor.Result[] executeAndWait(DynamicPooledExecutor.Command[] commands)
commands - the commands to execute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||