C# Class CmisSync.Lib.Queueing.SyncScheduler

Sync scheduler. Inserts every pollInterval a new StartNextSyncEvent into the Queue
Inheritance: SyncEventHandler, IDisposable
Mostrar archivo Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
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.

Method Details

Dispose() public method

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
return void

Handle() public method

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.
return bool

Start() public method

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

Stop() public method

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

SyncScheduler() public method

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.
return System