C# Class BitSharper.Threading.Execution.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.
Inheritance: IRejectedExecutionHandler
Afficher le fichier Open project: TangibleCryptography/BitSharper

Méthodes publiques

Méthode Description
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.

Method Details

RejectedExecution() public méthode

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. ///
Résultat void