public final class BlockingAdaptiveExecutor
extends java.lang.Object
implements java.util.concurrent.Executor
Executor which uses a Limiter to determine the size of the thread pool.
Any Runnable executed once the limit has been reached will block the calling
thread until the limit is released.
Operations submitted to this executor should be homogeneous and have similar
long term latency characteristics. RTT samples will only be taken from successful
operations. The Runnable should throw a UncheckedTimeoutException if
a request timed out or some external limit was reached. All other exceptions will be
ignored.| Modifier and Type | Class and Description |
|---|---|
static class |
BlockingAdaptiveExecutor.Builder |
| Constructor and Description |
|---|
BlockingAdaptiveExecutor(Limiter<java.lang.Void> limiter)
Deprecated.
|
BlockingAdaptiveExecutor(Limiter<java.lang.Void> limiter,
java.util.concurrent.Executor executor)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable command) |
static BlockingAdaptiveExecutor.Builder |
newBuilder() |
@Deprecated public BlockingAdaptiveExecutor(Limiter<java.lang.Void> limiter)
@Deprecated public BlockingAdaptiveExecutor(Limiter<java.lang.Void> limiter, java.util.concurrent.Executor executor)
public static BlockingAdaptiveExecutor.Builder newBuilder()
public void execute(java.lang.Runnable command)
execute in interface java.util.concurrent.Executor