Module net.anwiba.commons.thread
Package net.anwiba.commons.thread.queue
Class WorkQueue.ExecutionHandler
java.lang.Object
net.anwiba.commons.thread.queue.WorkQueue.ExecutionHandler
- All Implemented Interfaces:
RejectedExecutionHandler
- Enclosing class:
- WorkQueue
public static final class WorkQueue.ExecutionHandler
extends Object
implements RejectedExecutionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterExecute(WorkQueue.ProcessScheduledFuture<?> future, Throwable throwable, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState) voidbeforeExecute(Thread thread, WorkQueue.ProcessScheduledFuture<?> future, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState) voidexecute(WorkQueue.ProcessScheduledFuture<?> future, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState) getIdentifierString(IRunnable runnable) voidrejectedExecution(Runnable runnable, ThreadPoolExecutor executor)
-
Constructor Details
-
ExecutionHandler
-
-
Method Details
-
execute
public void execute(WorkQueue.ProcessScheduledFuture<?> future, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState) -
beforeExecute
public void beforeExecute(Thread thread, WorkQueue.ProcessScheduledFuture<?> future, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState) -
afterExecute
public void afterExecute(WorkQueue.ProcessScheduledFuture<?> future, Throwable throwable, int poolSize, int activeCount, int queueSize, WorkQueue.QueueState queueState) -
getIdentifierString
-
rejectedExecution
- Specified by:
rejectedExecutionin interfaceRejectedExecutionHandler
-