C# 클래스 Fibrous.Queues.BoundedQueue

Queue with bounded capacity. Will throw exception if capacity does not recede prior to wait time. Good for putting back pressure on fast publishers
상속: IQueue
파일 보기 프로젝트 열기: chrisa23/Fibrous

공개 메소드들

메소드 설명
BoundedQueue ( int depth, int maxWaitTime = Int32.MaxValue ) : System
Dispose ( ) : void
Drain ( ) : List
Enqueue ( System.Action action ) : void

Enqueue action.

비공개 메소드들

메소드 설명
ReadyToDequeue ( ) : bool
SpaceAvailable ( int toAdd ) : bool

메소드 상세

BoundedQueue() 공개 메소드

public BoundedQueue ( int depth, int maxWaitTime = Int32.MaxValue ) : System
depth int
maxWaitTime int
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Drain() 공개 메소드

public Drain ( ) : List
리턴 List

Enqueue() 공개 메소드

Enqueue action.
public Enqueue ( System.Action action ) : void
action System.Action
리턴 void