| Package | Description |
|---|---|
| com.github.nill14.utils.executor | |
| java.util.concurrent |
| Modifier and Type | Class and Description |
|---|---|
class |
InterceptingExecutor
Explanation about corePoolSize vs maxPoolSize
http://www.bigsoft.co.uk/blog/index.php/2009/11/27/rules-of-a-threadpoolexecutor-pool-size
|
class |
PriorityExecutor
Explanation about corePoolSize vs maxPoolSize
http://www.bigsoft.co.uk/blog/index.php/2009/11/27/rules-of-a-threadpoolexecutor-pool-size
|
| Modifier and Type | Method and Description |
|---|---|
void |
ThreadPoolExecutor.CallerRunsPolicy.rejectedExecution(Runnable r,
ThreadPoolExecutor e)
Executes task r in the caller's thread, unless the executor
has been shut down, in which case the task is discarded.
|
void |
ThreadPoolExecutor.AbortPolicy.rejectedExecution(Runnable r,
ThreadPoolExecutor e)
Always throws RejectedExecutionException.
|
void |
ThreadPoolExecutor.DiscardPolicy.rejectedExecution(Runnable r,
ThreadPoolExecutor e)
Does nothing, which has the effect of discarding task r.
|
void |
ThreadPoolExecutor.DiscardOldestPolicy.rejectedExecution(Runnable r,
ThreadPoolExecutor e)
Obtains and ignores the next task that the executor
would otherwise execute, if one is immediately available,
and then retries execution of task r, unless the executor
is shut down, in which case task r is instead discarded.
|
Copyright © 2016. All rights reserved.