ResourceQueueT Class

Provides a specialized, thread-safe queue that acts as a quasi-buffer pool.

Definition

Namespace: SnapDB.Collections
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class ResourceQueue<T>
where T : class
Inheritance
Object    ResourceQueueT

Type Parameters

T
The type of resources managed by the queue (must be a reference type).

Constructors

ResourceQueueT Creates a new Resource Queue with the specified initial resources and maximum capacity.

Methods

Dequeue Removes an item from the queue. If one does not exist, a new item is created.
Enqueue Adds an item back to the queue, so long as queue is not at maximum capacity.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also