ResourceQueueCollectionTKey, TResource Class

Provides a thread-safe collection of many different resources of the same type.

Definition

Namespace: SnapDB.Collections
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class ResourceQueueCollection<TKey, TResource>
where TResource : class
Inheritance
Object    ResourceQueueCollectionTKey, TResource

Type Parameters

TKey
An IComparable type key that is used to distinguish different resource queues.
TResource
The type of the resource queue.

Constructors

ResourceQueueCollectionTKey, TResource(FuncTResource, Int32, Int32) Initializes a new instance of the ResourceQueueCollectionTKey, TResource class with a default instance creation function and initial and maximum counts.
ResourceQueueCollectionTKey, TResource(FuncTKey, TResource, Int32, Int32) Initializes a new instance of the ResourceQueueCollectionTKey, TResource class with a custom instance creation function and initial and maximum counts.
ResourceQueueCollectionTKey, TResource(FuncTKey, FuncTResource, FuncTKey, Int32, FuncTKey, Int32) Initializes a new instance of the ResourceQueueCollectionTKey, TResource class with a custom instance creation function, initial counts, and maximum counts.
ResourceQueueCollectionTKey, TResource(FuncTKey, FuncTResource, Int32, Int32) Initializes a new instance of the ResourceQueueCollectionTKey, TResource class with a custom instance creation function and initial and maximum counts.

Properties

Item Gets the resource queue for a key of this.

Methods

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)
GetResourceQueue Gets a resource queue associated with the specified key or creates a new one if it doesn't exist.
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