Uses of Interface java.util.concurrent.RejectedExecutionHandler

Uses in package java.util.concurrent

Classes implementing java.util.concurrent.RejectedExecutionHandler

class
A handler for rejected tasks that throws a RejectedExecutionException.
class
A handler for rejected tasks that runs the rejected task directly in the calling thread of the execute method, unless the executor has been shut down, in which case the task is discarded.
class
A handler for rejected tasks that discards the oldest unhandled request and then retries execute, unless the executor is shut down, in which case the task is discarded.
class
A handler for rejected tasks that silently discards the rejected task.

Constructors with parameter type java.util.concurrent.RejectedExecutionHandler

Creates a new ScheduledThreadPoolExecutor with the given initial parameters.
Creates a new ScheduledThreadPoolExecutor with the given initial parameters.
ThreadPoolExecutor.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, RejectedExecutionHandler handler)
Creates a new ThreadPoolExecutor with the given initial parameters and default thread factory.
ThreadPoolExecutor.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
Creates a new ThreadPoolExecutor with the given initial parameters.

Methods with parameter type java.util.concurrent.RejectedExecutionHandler

void
Sets a new handler for unexecutable tasks.

Methods with return type java.util.concurrent.RejectedExecutionHandler

RejectedExecutionHandler
Returns the current handler for unexecutable tasks.