一款简单易用的基础网络通讯组件库。

IntelligentConcurrentQueueT

智能安全队列

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public class IntelligentConcurrentQueue<T> : ConcurrentQueue<T>
Inheritance
Object    ConcurrentQueueT    IntelligentConcurrentQueueT

类型参数

T

构造函数

属性

Count 长度
IsEmptyGets a value that indicates whether the ConcurrentQueueT is empty.
(继承自 ConcurrentQueueT。)
MaxCount 允许的最大长度

方法

ClearRemoves all objects from the ConcurrentQueueT.
(继承自 ConcurrentQueueT。)
CopyToCopies the ConcurrentQueueT elements to an existing one-dimensional Array, starting at the specified array index.
(继承自 ConcurrentQueueT。)
Enqueue 入队
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
GetEnumeratorReturns an enumerator that iterates through the ConcurrentQueueT.
(继承自 ConcurrentQueueT。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
ToArrayCopies the elements stored in the ConcurrentQueueT to a new array.
(继承自 ConcurrentQueueT。)
ToStringReturns a string that represents the current object.
(继承自 Object。)
TryDequeue 出队
TryPeekTries to return an object from the beginning of the ConcurrentQueueT without removing it.
(继承自 ConcurrentQueueT。)

扩展方法

ClearT 清空并发队列并执行指定操作。
(由 CollectionsExtension 定义。)
Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

显式接口实现

ICollectionCopyToCopies the elements of the ICollection to an Array, starting at a particular Array index.
(继承自 ConcurrentQueueT。)
IEnumerableGetEnumeratorReturns an enumerator that iterates through a collection.
(继承自 ConcurrentQueueT。)
ICollectionIsSynchronizedGets a value indicating whether access to the ICollection is synchronized with the SyncRoot.
(继承自 ConcurrentQueueT。)
ICollectionSyncRootGets an object that can be used to synchronize access to the ICollection. This property is not supported.
(继承自 ConcurrentQueueT。)
IProducerConsumerCollectionTTryAddAttempts to add an object to the IProducerConsumerCollectionT.
(继承自 ConcurrentQueueT。)
IProducerConsumerCollectionTTryTakeAttempts to remove and return an object from the IProducerConsumerCollectionT.
(继承自 ConcurrentQueueT。)

参见