C# Класс Summer.Batch.Common.TaskExecution.SimpleAsyncTaskExecutor

Наследование: IAsyncTaskExecutor
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Execute ( System.Threading.Tasks.Task task ) : void

Executes the given task. The call might return immediately if the implementation uses an asynchronous execution strategy, or might block in the case of synchronous execution.

Execute ( System.Threading.Tasks.Task task, long startTimeout ) : void

Executes the given task.

IsThrottleActive ( ) : bool

Return whether owned throttle is currently active.

Submit ( System.Threading.Tasks.Task task ) : void

Submits a task for execution.

Защищенные методы

Метод Описание
DoExecute ( System.Threading.Tasks.Task task ) : void

Template method for the actual execution of a task. The default implementation starts the task.

Приватные методы

Метод Описание
GetConcurrencyThrottlingTask ( System.Threading.Tasks.Task target ) : System.Threading.Tasks.Task

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

DoExecute() защищенный Метод

Template method for the actual execution of a task. The default implementation starts the task.
protected DoExecute ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task The task to execute.
Результат void

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

Executes the given task. The call might return immediately if the implementation uses an asynchronous execution strategy, or might block in the case of synchronous execution.
 If the given task was not accepted.
public Execute ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task the Task to execute (never null).
Результат void

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

Executes the given task.
   in case of the task being rejected because /// of the timeout (i.e. it cannot be started in time)
public Execute ( System.Threading.Tasks.Task task, long startTimeout ) : void
task System.Threading.Tasks.Task The task to execute.
startTimeout long The time duration ( inmilliseconds) within which the task is /// supposed to start. This is intended as a hint to the executor, allowing for /// preferred handling of immediate tasks.
Результат void

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

Return whether owned throttle is currently active.
public IsThrottleActive ( ) : bool
Результат bool

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

Submits a task for execution.
 If the given task was not accepted.
public Submit ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task The task to execute.
Результат void