public class DynamicPooledExecutor extends Object implements Executor
DynamicPooledExecutor
implements an executor, which dynamically
adjusts its maximum number of threads according to the number of available
processors returned by Runtime.availableProcessors()
.Constructor and Description |
---|
DynamicPooledExecutor()
Creates a new DynamicPooledExecutor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
execute(Runnable command)
Executes the given command.
|
public DynamicPooledExecutor()
public void execute(Runnable command)
public void close()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.