C# 클래스 FoundationDB.Layers.Messaging.FdbWorkerPool

파일 보기 프로젝트 열기: BedeGaming/foundationdb-dotnet-client 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ClearTask void
FindRandomItem Slice>>.Task
GetRandomId Slice
PushQueueAsync Task
RunTask Task
StoreTask void

공개 메소드들

메소드 설명
FdbWorkerPool ( FdbSubspace subspace ) : FoundationDB.Client
RunWorkerAsync ( IFdbDatabase db, Func handler, CancellationToken ct ) : Task

Run the worker loop

ScheduleTaskAsync ( IFdbRetryable db, Slice taskId, Slice taskBody, CancellationToken ct = default(CancellationToken) ) : Task

Add and Schedule a new Task in the worker pool

비공개 메소드들

메소드 설명
ClearTask ( IFdbTransaction tr, Slice taskId ) : void
FindRandomItem ( IFdbTransaction tr, FdbSubspace ring ) : Slice>>.Task
GetRandomId ( ) : Slice
PushQueueAsync ( IFdbTransaction tr, FdbSubspace queue, Slice taskId ) : Task
RunTask ( IFdbDatabase db, FdbWorkerMessage msg, Func handler, CancellationToken ct ) : Task
StoreTask ( IFdbTransaction tr, Slice taskId, System.DateTime scheduledUtc, Slice taskBody ) : void

메소드 상세

FdbWorkerPool() 공개 메소드

public FdbWorkerPool ( FdbSubspace subspace ) : FoundationDB.Client
subspace FdbSubspace
리턴 FoundationDB.Client

RunWorkerAsync() 공개 메소드

Run the worker loop
public RunWorkerAsync ( IFdbDatabase db, Func handler, CancellationToken ct ) : Task
db IFdbDatabase
handler Func
ct System.Threading.CancellationToken
리턴 Task

ScheduleTaskAsync() 공개 메소드

Add and Schedule a new Task in the worker pool
public ScheduleTaskAsync ( IFdbRetryable db, Slice taskId, Slice taskBody, CancellationToken ct = default(CancellationToken) ) : Task
db IFdbRetryable
taskId Slice
taskBody Slice
ct System.Threading.CancellationToken
리턴 Task