C# Class Sharplike.Core.Scheduling.AbstractSimpleScheduler

The abstract class for any simple scheduler (using either single or multi-threaded models). Any scheduler that inherits from AbstractSimpleScheduler should dispatch tasks in the order they are added to the scheduler. (Note, of course, that in multi-threaded models they may not return in the same order.)
Inheritance: IScheduler
Afficher le fichier Open project: eropple/sharplike

Protected Properties

Свойство Type Description
tasks List

Méthodes publiques

Méthode Description
AbstractSimpleScheduler ( ) : System

Constructor.

AddTask ( IScheduledTask task ) : void

Adds a task to the scheduler.

ClearTasks ( ) : void

Clears all tasks from the scheduler.

Process ( ) : void

Processes the scheduler. This should not be called in end user code unless the end user knows exactly what they're doing.

RemoveTask ( IScheduledTask task ) : System.Boolean

Removes a task from the scheduler. Is a fail-safe function; will not throw an exception if the task was not there to begin with.

Method Details

AbstractSimpleScheduler() public méthode

Constructor.
public AbstractSimpleScheduler ( ) : System
Résultat System

AddTask() public méthode

Adds a task to the scheduler.
public AddTask ( IScheduledTask task ) : void
task IScheduledTask The task to add to the scheduler.
Résultat void

ClearTasks() public méthode

Clears all tasks from the scheduler.
public ClearTasks ( ) : void
Résultat void

Process() public abstract méthode

Processes the scheduler. This should not be called in end user code unless the end user knows exactly what they're doing.
public abstract Process ( ) : void
Résultat void

RemoveTask() public méthode

Removes a task from the scheduler. Is a fail-safe function; will not throw an exception if the task was not there to begin with.
public RemoveTask ( IScheduledTask task ) : System.Boolean
task IScheduledTask The task to remove from the scheduler.
Résultat System.Boolean

Property Details

tasks protected_oe property

protected List tasks
Résultat List