C# Class 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
Inheritance: IQueue
Afficher le fichier Open project: chrisa23/Fibrous

Méthodes publiques

Méthode Description
BoundedQueue ( int depth, int maxWaitTime = Int32.MaxValue ) : System
Dispose ( ) : void
Drain ( ) : List
Enqueue ( System.Action action ) : void

Enqueue action.

Private Methods

Méthode Description
ReadyToDequeue ( ) : bool
SpaceAvailable ( int toAdd ) : bool

Method Details

BoundedQueue() public méthode

public BoundedQueue ( int depth, int maxWaitTime = Int32.MaxValue ) : System
depth int
maxWaitTime int
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Drain() public méthode

public Drain ( ) : List
Résultat List

Enqueue() public méthode

Enqueue action.
public Enqueue ( System.Action action ) : void
action System.Action
Résultat void