Uses of Interface
org.qiunet.utils.timer.executor.DRejectedExecutionHandler
Packages that use DRejectedExecutionHandler
-
Uses of DRejectedExecutionHandler in org.qiunet.utils.timer.executor
Classes in org.qiunet.utils.timer.executor that implement DRejectedExecutionHandlerModifier 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.Fields in org.qiunet.utils.timer.executor declared as DRejectedExecutionHandlerModifier and TypeFieldDescriptionprotected static final DRejectedExecutionHandlerDThreadPoolExecutor.defaultHandlerThe default rejected execution handlerMethods in org.qiunet.utils.timer.executor that return DRejectedExecutionHandlerModifier and TypeMethodDescriptionDThreadPoolExecutor.getRejectedExecutionHandler()Returns the current handler for unexecutable tasks.Methods in org.qiunet.utils.timer.executor with parameters of type DRejectedExecutionHandlerModifier and TypeMethodDescriptionvoidDThreadPoolExecutor.setRejectedExecutionHandler(DRejectedExecutionHandler handler) Sets a new handler for unexecutable tasks.Constructors in org.qiunet.utils.timer.executor with parameters of type DRejectedExecutionHandlerModifierConstructorDescriptionDScheduledThreadPoolExecutor(int corePoolSize, long delayCheckMillis, ThreadFactory threadFactory, DRejectedExecutionHandler handler) Creates a new DScheduledThreadPoolExecutor with the given initial parameters.DScheduledThreadPoolExecutor(int corePoolSize, long delayCheckMillis, DRejectedExecutionHandler handler) Creates a new DScheduledThreadPoolExecutor with the given initial parameters.DThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, DRejectedExecutionHandler handler) Creates a newDThreadPoolExecutorwith the given initial parameters.DThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, DRejectedExecutionHandler handler) Creates a newDThreadPoolExecutorwith the given initial parameters and default thread factory.