C# Класс Java.Util.Concurrent.ThreadPoolExecutor.DiscardOldestPolicy

A IRejectedExecutionHandler for rejected tasks that discards the oldest unhandled request and then retries IExecutor.Execute(IRunnable), unless the executor is shut down, in which case the task is discarded.
Наследование: IRejectedExecutionHandler
Показать файл Открыть проект

Открытые методы

Метод Описание
RejectedExecution ( IRunnable runnable, ThreadPoolExecutor executor ) : void

Obtains and ignores the next task that the executor would otherwise execute, if one is immediately available, and then retries execution of task runnable, unless the executor is shut down, in which case task runnable is instead discarded.

Описание методов

RejectedExecution() публичный Метод

Obtains and ignores the next task that the executor would otherwise execute, if one is immediately available, and then retries execution of task runnable, unless the executor is shut down, in which case task runnable is instead discarded.
public RejectedExecution ( IRunnable runnable, ThreadPoolExecutor executor ) : void
runnable IRunnable /// The task requested to be executed. ///
executor ThreadPoolExecutor /// The attempting to execute this /// task. ///
Результат void