public class PoolDispatcher extends Object implements Dispatcher
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_MAX_POOL_SIZE_FACTOR |
static int |
DEFAULT_POOL_QUEUE_SIZE_FACTOR |
Constructor and Description |
---|
PoolDispatcher(int poolSize) |
PoolDispatcher(int poolSize,
int poolQueueSizeFactor,
float maxPoolSizeFactor,
long keepAliveTime,
TimeUnit unit,
RejectedExecutionHandler rejectedExecutionHandler,
String prefix) |
PoolDispatcher(int poolSize,
long keepAliveTime,
TimeUnit unit,
RejectedExecutionHandler rejectedExecutionHandler,
String prefix) |
public static final int DEFAULT_POOL_QUEUE_SIZE_FACTOR
public static final float DEFAULT_MAX_POOL_SIZE_FACTOR
public PoolDispatcher(int poolSize)
public PoolDispatcher(int poolSize, long keepAliveTime, TimeUnit unit, RejectedExecutionHandler rejectedExecutionHandler, String prefix)
public PoolDispatcher(int poolSize, int poolQueueSizeFactor, float maxPoolSizeFactor, long keepAliveTime, TimeUnit unit, RejectedExecutionHandler rejectedExecutionHandler, String prefix)
public final void dispatch(Runnable r)
dispatch
in interface Dispatcher
public void stop()
stop
in interface Dispatcher
Copyright © 2021. All rights reserved.