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

Sync event queue.
상속: ICountingQueue
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync

보호된 프로퍼티들

프로퍼티 타입 설명
categoryCounter IEventCounter
fullCounter IEventCounter

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool isDisposing ) : void

Dispose the this instance if isDisposing is true.

비공개 메소드들

메소드 설명
Listen ( BlockingCollection queue, ISyncEventManager manager, WaitHandle waitHandle ) : void

메소드 상세

AddEvent() 공개 메소드

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

Continue() 공개 메소드

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

Dispose() 공개 메소드

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
리턴 void

Dispose() 보호된 메소드

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

StopListener() 공개 메소드

Stops the listener.
public StopListener ( ) : void
리턴 void

Suspend() 공개 메소드

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

SyncEventQueue() 공개 메소드

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

WaitForStopped() 공개 메소드

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

WaitForStopped() 공개 메소드

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

WaitForStopped() 공개 메소드

Waits for stopped.
public WaitForStopped ( ) : void
리턴 void

프로퍼티 상세

categoryCounter 보호되어 있는 프로퍼티

The category counter.
protected IEventCounter categoryCounter
리턴 IEventCounter

fullCounter 보호되어 있는 프로퍼티

The full counter.
protected IEventCounter fullCounter
리턴 IEventCounter