Class FixedSizedQueue<T>
Equivalent to
Inheritance
System.Object
FixedSizedQueue<T>
Namespace: Libplanet.Common
Assembly: Libplanet.Common.dll
Syntax
public class FixedSizedQueue<T> : ConcurrentQueue<T>
Type Parameters
Name | Description |
---|---|
T | Specifies the type of elements in the queue. |
Constructors
| Improve this Doc View SourceFixedSizedQueue(Int32)
Creates a new instance of the FixedSizedQueue<T>
with the specified size
.
Declaration
public FixedSizedQueue(int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size | The maximum size of the FixedSizedQueue<T>. |
Properties
| Improve this Doc View SourceSize
Gets the fixed size of the FixedSizedQueue<T>.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEnqueue(T)
Adds an object at the end of the FixedSizedQueue<T>.
Declaration
public void Enqueue(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj | The object to add at the end of the FixedSizedQueue<T>. |