Uses of Interface
java.util.concurrent.RejectedExecutionHandler
Packages that use RejectedExecutionHandler
-
Uses of RejectedExecutionHandler in java.util.concurrent
Classes in java.util.concurrent that implement RejectedExecutionHandlerModifier and TypeClassDescriptionstatic classA handler for rejected tasks that throws aRejectedExecutionException.static classA handler for rejected tasks that runs the rejected task directly in the calling thread of theexecutemethod, unless the executor has been shut down, in which case the task is discarded.static classA handler for rejected tasks that discards the oldest unhandled request and then retriesexecute, unless the executor is shut down, in which case the task is discarded.static classA handler for rejected tasks that silently discards the rejected task.Methods in java.util.concurrent that return RejectedExecutionHandlerModifier and TypeMethodDescriptionThreadPoolExecutor.getRejectedExecutionHandler()Returns the current handler for unexecutable tasks.Methods in java.util.concurrent with parameters of type RejectedExecutionHandlerModifier and TypeMethodDescriptionvoidThreadPoolExecutor.setRejectedExecutionHandler(RejectedExecutionHandler handler) Sets a new handler for unexecutable tasks.Constructors in java.util.concurrent with parameters of type RejectedExecutionHandlerModifierConstructorDescriptionScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler) Creates a newScheduledThreadPoolExecutorwith the given initial parameters.ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler) Creates a newScheduledThreadPoolExecutorwith the given initial parameters.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler) Creates a newThreadPoolExecutorwith the given initial parameters and the default thread factory.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) Creates a newThreadPoolExecutorwith the given initial parameters.