-
Notifications
You must be signed in to change notification settings - Fork 0
f6246944 3211 e264 8a7f 41a560e3832e
Axel Kesseler edited this page Mar 1, 2023
·
16 revisions
This interface represents an observable queue.
Namespace: Plexdata.LogWriter.Abstraction
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1
C#
public interface IObservableQueue<TItem>
- TItem
- The type to be assigned with an instance of the queue.
Name | Description | |
---|---|---|
Count | Gets the number of items currently in the queue. | |
IsEmpty | Determines if the queue is currently empty. |
Name | Description | |
---|---|---|
Clear | Removes all items from the queue. | |
Dequeue | Removes an item from the top of the queue and returns it. | |
DequeueAll | Removes all items from the queue and returns them. | |
Enqueue | Adds provided item at the end of the queue. | |
Peek | Returns the item at the beginning of the queue but without removing it. | |
Trim | Sets the capacity to the actual number of queued items. |
Name | Description | |
---|---|---|
Dequeued | Informs about item dequeuing. | |
Enqueued | Informs about item enqueuing. |
Classes derived from this interface may handle an access to the queued items in different ways.