C# Class CmisSync.Lib.Queueing.SyncEventQueue

Sync event queue.
Inheritance: ICountingQueue
ファイルを表示 Open project: OpenDataSpace/CmisSync

Protected Properties

Property Type Description
categoryCounter IEventCounter
fullCounter IEventCounter

Public Methods

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

Protected Methods

Method Description
Dispose ( bool isDisposing ) : void

Dispose the this instance if isDisposing is true.

Private Methods

Method Description
Listen ( BlockingCollection queue, ISyncEventManager manager, WaitHandle waitHandle ) : void

Method Details

AddEvent() public method

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

Continue() public method

Continue the queue consumer if it is suspended.
public Continue ( ) : void
return void

Dispose() public method

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

Dispose() protected method

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

StopListener() public method

Stops the listener.
public StopListener ( ) : void
return void

Suspend() public method

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

SyncEventQueue() public method

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

WaitForStopped() public method

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

WaitForStopped() public method

Waits for stopped.
public WaitForStopped ( int milisecondsTimeout ) : bool
milisecondsTimeout int Miliseconds timeout.
return bool

WaitForStopped() public method

Waits for stopped.
public WaitForStopped ( ) : void
return void

Property Details

categoryCounter protected_oe property

The category counter.
protected IEventCounter categoryCounter
return IEventCounter

fullCounter protected_oe property

The full counter.
protected IEventCounter fullCounter
return IEventCounter