Show / Hide Table of Contents

Class FixedSizedQueue<T>

Equivalent to , except this does not accept more than the specified maximum size.

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 Source

FixedSizedQueue(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 Source

Size

Gets the fixed size of the FixedSizedQueue<T>.

Declaration
public int Size { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

Enqueue(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>.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium