public static final class WorkQueue.ExecutionHandler extends Object implements RejectedExecutionHandler
| Constructor and Description |
|---|
ExecutionHandler(net.anwiba.commons.logging.ILogger logger,
String queueName) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterExecute(WorkQueue.ProcessScheduledFuture<?> future,
Throwable throwable,
int poolSize,
int activeCount,
int queueSize,
WorkQueue.QueueState queueState) |
void |
beforeExecute(Thread thread,
WorkQueue.ProcessScheduledFuture<?> future,
int poolSize,
int activeCount,
int queueSize,
WorkQueue.QueueState queueState) |
void |
execute(WorkQueue.ProcessScheduledFuture<?> future,
int poolSize,
int activeCount,
int queueSize,
WorkQueue.QueueState queueState) |
String |
getIdentifierString(IRunnable runnable) |
void |
rejectedExecution(Runnable runnable,
ThreadPoolExecutor executor) |
public ExecutionHandler(net.anwiba.commons.logging.ILogger logger,
String queueName)
public void execute(WorkQueue.ProcessScheduledFuture<?> future, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState)
public void beforeExecute(Thread thread, WorkQueue.ProcessScheduledFuture<?> future, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState)
public void afterExecute(WorkQueue.ProcessScheduledFuture<?> future, Throwable throwable, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState)
public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2007–2018 Andreas W. Bartels. All rights reserved.