C# Class CmisSync.Lib.Queueing.SyncEventQueue

Sync event queue.
Inheritance: ICountingQueue
Afficher le fichier Open project: OpenDataSpace/CmisSync

Protected Properties

Свойство Type Description
categoryCounter IEventCounter
fullCounter IEventCounter

Méthodes publiques

Méthode Description
AddEvent ( ISyncEvent newEvent ) : void

Adds the event to the queue.

Continue ( ) : void

Continue the queue consumer if it is suspended.

Dispose ( ) : void

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

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

StopListener ( ) : void

Stops the listener.

Suspend ( ) : void

Suspend the queue consumer thread after finished the processing of the actual event.

SyncEventQueue ( ISyncEventManager manager ) : System

Initializes a new instance of the CmisSync.Lib.Queueing.SyncEventQueue class.

WaitForStopped ( System.TimeSpan timeout ) : bool

Waits for stopped.

WaitForStopped ( int milisecondsTimeout ) : bool

Waits for stopped.

WaitForStopped ( ) : void

Waits for stopped.

Méthodes protégées

Méthode Description
Dispose ( bool isDisposing ) : void

Dispose the this instance if isDisposing is true.

Private Methods

Méthode Description
Listen ( BlockingCollection queue, ISyncEventManager manager, WaitHandle waitHandle ) : void

Method Details

AddEvent() public méthode

Adds the event to the queue.
When Listener is already stopped
public AddEvent ( ISyncEvent newEvent ) : void
newEvent ISyncEvent New event.
Résultat void

Continue() public méthode

Continue the queue consumer if it is suspended.
public Continue ( ) : void
Résultat void

Dispose() public méthode

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

Dispose() protected méthode

Dispose the this instance if isDisposing is true.
protected Dispose ( bool isDisposing ) : void
isDisposing bool If set to true is disposing.
Résultat void

StopListener() public méthode

Stops the listener.
public StopListener ( ) : void
Résultat void

Suspend() public méthode

Suspend the queue consumer thread after finished the processing of the actual event.
public Suspend ( ) : void
Résultat void

SyncEventQueue() public méthode

Initializes a new instance of the CmisSync.Lib.Queueing.SyncEventQueue class.
public SyncEventQueue ( ISyncEventManager manager ) : System
manager ISyncEventManager Manager holding the handler.
Résultat System

WaitForStopped() public méthode

Waits for stopped.
public WaitForStopped ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan Timeout time span.
Résultat bool

WaitForStopped() public méthode

Waits for stopped.
public WaitForStopped ( int milisecondsTimeout ) : bool
milisecondsTimeout int Miliseconds timeout.
Résultat bool

WaitForStopped() public méthode

Waits for stopped.
public WaitForStopped ( ) : void
Résultat void

Property Details

categoryCounter protected_oe property

The category counter.
protected IEventCounter categoryCounter
Résultat IEventCounter

fullCounter protected_oe property

The full counter.
protected IEventCounter fullCounter
Résultat IEventCounter