Fantasy
搜索结果

    显示/隐藏目录

    ConcurrentOneToManyQueuePool<TKey, TValue> 类

    表示一个并发的一对多队列池,用于维护具有相同键的多个值的关联关系,实现了 IDisposable 接口。

    继承
    object
    ConcurrentDictionary<TKey, Queue<TValue>>
    ConcurrentOneToManyQueue<TKey, TValue>
    ConcurrentOneToManyQueuePool<TKey, TValue>
    实现
    IDictionary<TKey, Queue<TValue>>
    ICollection<KeyValuePair<TKey, Queue<TValue>>>
    IReadOnlyDictionary<TKey, Queue<TValue>>
    IReadOnlyCollection<KeyValuePair<TKey, Queue<TValue>>>
    IEnumerable<KeyValuePair<TKey, Queue<TValue>>>
    IDictionary
    ICollection
    IEnumerable
    IDisposable
    IPool
    继承成员
    ConcurrentOneToManyQueue<TKey, TValue>.Contains(TKey, TValue)
    ConcurrentOneToManyQueue<TKey, TValue>.Enqueue(TKey, TValue)
    ConcurrentOneToManyQueue<TKey, TValue>.Dequeue(TKey)
    ConcurrentOneToManyQueue<TKey, TValue>.TryDequeue(TKey, out TValue)
    ConcurrentOneToManyQueue<TKey, TValue>.RemoveKey(TKey)
    ConcurrentOneToManyQueue<TKey, TValue>.Clear()
    ConcurrentDictionary<TKey, Queue<TValue>>.AddOrUpdate(TKey, Func<TKey, Queue<TValue>>, Func<TKey, Queue<TValue>, Queue<TValue>>)
    ConcurrentDictionary<TKey, Queue<TValue>>.AddOrUpdate(TKey, Queue<TValue>, Func<TKey, Queue<TValue>, Queue<TValue>>)
    ConcurrentDictionary<TKey, Queue<TValue>>.AddOrUpdate<TArg>(TKey, Func<TKey, TArg, Queue<TValue>>, Func<TKey, Queue<TValue>, TArg, Queue<TValue>>, TArg)
    ConcurrentDictionary<TKey, Queue<TValue>>.Clear()
    ConcurrentDictionary<TKey, Queue<TValue>>.ContainsKey(TKey)
    ConcurrentDictionary<TKey, Queue<TValue>>.GetEnumerator()
    ConcurrentDictionary<TKey, Queue<TValue>>.GetOrAdd(TKey, Func<TKey, Queue<TValue>>)
    ConcurrentDictionary<TKey, Queue<TValue>>.GetOrAdd(TKey, Queue<TValue>)
    ConcurrentDictionary<TKey, Queue<TValue>>.GetOrAdd<TArg>(TKey, Func<TKey, TArg, Queue<TValue>>, TArg)
    ConcurrentDictionary<TKey, Queue<TValue>>.ToArray()
    ConcurrentDictionary<TKey, Queue<TValue>>.TryAdd(TKey, Queue<TValue>)
    ConcurrentDictionary<TKey, Queue<TValue>>.TryGetValue(TKey, out Queue<TValue>)
    ConcurrentDictionary<TKey, Queue<TValue>>.TryRemove(KeyValuePair<TKey, Queue<TValue>>)
    ConcurrentDictionary<TKey, Queue<TValue>>.TryRemove(TKey, out Queue<TValue>)
    ConcurrentDictionary<TKey, Queue<TValue>>.TryUpdate(TKey, Queue<TValue>, Queue<TValue>)
    ConcurrentDictionary<TKey, Queue<TValue>>.Comparer
    ConcurrentDictionary<TKey, Queue<TValue>>.Count
    ConcurrentDictionary<TKey, Queue<TValue>>.IsEmpty
    ConcurrentDictionary<TKey, Queue<TValue>>.this[TKey]
    ConcurrentDictionary<TKey, Queue<TValue>>.Keys
    ConcurrentDictionary<TKey, Queue<TValue>>.Values
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.DataStructure.Collection
    程序集: Fantasy.Net.dll
    语法
    public class ConcurrentOneToManyQueuePool<TKey, TValue> : ConcurrentOneToManyQueue<TKey, TValue>, IDictionary<TKey, Queue<TValue>>, ICollection<KeyValuePair<TKey, Queue<TValue>>>, IReadOnlyDictionary<TKey, Queue<TValue>>, IReadOnlyCollection<KeyValuePair<TKey, Queue<TValue>>>, IEnumerable<KeyValuePair<TKey, Queue<TValue>>>, IDictionary, ICollection, IEnumerable, IDisposable, IPool where TKey : notnull
    类型参数
    名称 描述
    TKey

    关键字的类型,不能为空。

    TValue

    值的类型。

    方法

    | 编辑本文 查看源代码

    Create()

    创建并返回一个 ConcurrentOneToManyQueuePool<TKey, TValue> 的实例。

    声明
    public static ConcurrentOneToManyQueuePool<TKey, TValue> Create()
    返回
    类型 描述
    ConcurrentOneToManyQueuePool<TKey, TValue>

    创建的实例。

    | 编辑本文 查看源代码

    Dispose()

    释放当前实例所占用的资源,并将实例返回到对象池中,以便重用。

    声明
    public void Dispose()
    | 编辑本文 查看源代码

    IsPool()

    获取一个值,该值指示当前实例是否为对象池中的实例。

    声明
    public bool IsPool()
    返回
    类型 描述
    bool
    | 编辑本文 查看源代码

    SetIsPool(bool)

    设置一个值,该值指示当前实例是否为对象池中的实例。

    声明
    public void SetIsPool(bool isPool)
    参数
    类型 名称 描述
    bool isPool

    实现

    IDictionary<TKey, TValue>
    ICollection<T>
    IReadOnlyDictionary<TKey, TValue>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IDictionary
    ICollection
    IEnumerable
    IDisposable
    IPool

    扩展方法

    JsonHelper.ToJson<T>(T)
    DictionaryExtensions.TryRemove<T, TV>(IDictionary<T, TV>, T, out TV)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX