Summer.Batch.Common.TaskExecution.ITaskExecutor Interface Reference

Simple task executor interface that abstracts the execution of a Task. Implementations can use all sorts of different execution strategies, such as: synchronous, asynchronous, using a thread pool, and more. More...

Inheritance diagram for Summer.Batch.Common.TaskExecution.ITaskExecutor:
Summer.Batch.Common.TaskExecution.IAsyncTaskExecutor Summer.Batch.Common.TaskExecution.SyncTaskExecutor Summer.Batch.Common.TaskExecution.SimpleAsyncTaskExecutor

Public Member Functions

void Execute (Task task)
 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. More...
 

Detailed Description

Simple task executor interface that abstracts the execution of a Task. Implementations can use all sorts of different execution strategies, such as: synchronous, asynchronous, using a thread pool, and more.

Member Function Documentation

void Summer.Batch.Common.TaskExecution.ITaskExecutor.Execute ( Task  task)

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.

Parameters
taskthe Task to execute (never null).
Exceptions
TaskRejectedException If the given task was not accepted.

Implemented in Summer.Batch.Common.TaskExecution.SimpleAsyncTaskExecutor, and Summer.Batch.Common.TaskExecution.SyncTaskExecutor.


The documentation for this interface was generated from the following file:
  • Summer.Batch.Common/TaskExecution/ITaskExecutor.cs