public class CallerBlocksPolicy extends Object implements RejectedExecutionHandler
The behaviour of an application using this policy is similar to one using the
ThreadPoolExecutor.CallerRunsPolicy,
but instead of running a certain Callable on the main thread, which may block this thread
extremely long - much longer than the other Callables run, the main thread already continues
as soon as any of the currently running tasks finished.
| Constructor and Description |
|---|
CallerBlocksPolicy() |
public CallerBlocksPolicy()
public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2013-2014. All Rights Reserved.