Summer.Batch.Common.TaskExecution.IAsyncTaskExecutor Interface Reference

Extended interface for asynchronous ITaskExecutor implementations, offering an overloaded Execute(Task, long) variant with a start timeout parameter. More...

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

Public Member Functions

void Execute (Task task, long startTimeout)
 Executes the given task. More...
 
void Submit (Task task)
 Submits a task for execution. More...
 
- Public Member Functions inherited from Summer.Batch.Common.TaskExecution.ITaskExecutor
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

Extended interface for asynchronous ITaskExecutor implementations, offering an overloaded Execute(Task, long) variant with a start timeout parameter.

Member Function Documentation

void Summer.Batch.Common.TaskExecution.IAsyncTaskExecutor.Execute ( Task  task,
long  startTimeout 
)

Executes the given task.

Parameters
taskThe task to execute.
startTimeoutThe 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.
Exceptions
TaskRejectedException If the given task was not accepted.
TaskTimeoutException If the task being rejected because of the timeout (i.e., it cannot be started in time).
See also
AsyncTaskExecutorConstants.TimeoutImmediate, AsyncTaskExecutorConstants.TimeoutIndefinite

Implemented in Summer.Batch.Common.TaskExecution.SimpleAsyncTaskExecutor.

void Summer.Batch.Common.TaskExecution.IAsyncTaskExecutor.Submit ( Task  task)

Submits a task for execution.

Parameters
taskThe task to execute.
Exceptions
TaskRejectedException If the given task was not accepted.

Implemented in Summer.Batch.Common.TaskExecution.SimpleAsyncTaskExecutor.


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