C# 클래스 CmisSync.Lib.Queueing.SyncScheduler

Sync scheduler. Inserts every pollInterval a new StartNextSyncEvent into the Queue
상속: SyncEventHandler, IDisposable
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases all resource used by the CmisSync.Lib.Queueing.SyncScheduler object.

Call Dispose when you are finished using the CmisSync.Lib.Queueing.SyncScheduler. The Dispose method leaves the CmisSync.Lib.Queueing.SyncScheduler in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.Queueing.SyncScheduler so the garbage collector can reclaim the memory that the CmisSync.Lib.Queueing.SyncScheduler was occupying.

Handle ( ISyncEvent e ) : bool

Handles Config changes if the poll interval has been changed. Resets also the timer if a full sync event has been recognized.

Start ( ) : void

Starts adding events into the Queue, if it has been stopped before.

Stop ( ) : void

Stops adding event into the Queue

SyncScheduler ( ISyncEventQueue queue, double pollInterval = 5000 ) : System

Initializes a new instance of the CmisSync.Lib.Queueing.SyncScheduler class. Starts adding events automatically after successful creation.

메소드 상세

Dispose() 공개 메소드

Releases all resource used by the CmisSync.Lib.Queueing.SyncScheduler object.
Call Dispose when you are finished using the CmisSync.Lib.Queueing.SyncScheduler. The Dispose method leaves the CmisSync.Lib.Queueing.SyncScheduler in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.Queueing.SyncScheduler so the garbage collector can reclaim the memory that the CmisSync.Lib.Queueing.SyncScheduler was occupying.
public Dispose ( ) : void
리턴 void

Handle() 공개 메소드

Handles Config changes if the poll interval has been changed. Resets also the timer if a full sync event has been recognized.
public Handle ( ISyncEvent e ) : bool
e ISyncEvent Sync event.
리턴 bool

Start() 공개 메소드

Starts adding events into the Queue, if it has been stopped before.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops adding event into the Queue
public Stop ( ) : void
리턴 void

SyncScheduler() 공개 메소드

Initializes a new instance of the CmisSync.Lib.Queueing.SyncScheduler class. Starts adding events automatically after successful creation.
public SyncScheduler ( ISyncEventQueue queue, double pollInterval = 5000 ) : System
queue ISyncEventQueue Sync event queue.
pollInterval double Poll interval.
리턴 System