C# 클래스 Summer.Batch.Common.TaskExecution.SimpleAsyncTaskExecutor

상속: IAsyncTaskExecutor
파일 보기 프로젝트 열기: SummerBatch/SummerBatch 1 사용 예제들

공개 메소드들

메소드 설명
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