Uses of Class
org.qiunet.utils.timer.executor.DThreadPoolExecutor
Packages that use DThreadPoolExecutor
-
Uses of DThreadPoolExecutor in org.qiunet.utils.timer.executor
Subclasses of DThreadPoolExecutor in org.qiunet.utils.timer.executorModifier and TypeClassDescriptionclassADThreadPoolExecutorthat can additionally schedule commands to run after a given delay, or to execute periodically.Methods in org.qiunet.utils.timer.executor with parameters of type DThreadPoolExecutorModifier and TypeMethodDescriptionvoidDRejectedExecutionHandler.rejectedExecution(Runnable r, DThreadPoolExecutor executor) Method that may be invoked by aDThreadPoolExecutorwhenexecutecannot accept a task.voidDThreadPoolExecutor.AbortPolicy.rejectedExecution(Runnable r, DThreadPoolExecutor e) Always throws RejectedExecutionException.voidDThreadPoolExecutor.CallerRunsPolicy.rejectedExecution(Runnable r, DThreadPoolExecutor e) Executes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded.voidDThreadPoolExecutor.DiscardOldestPolicy.rejectedExecution(Runnable r, DThreadPoolExecutor 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.voidDThreadPoolExecutor.DiscardPolicy.rejectedExecution(Runnable r, DThreadPoolExecutor e) Does nothing, which has the effect of discarding task r.