BlockingByteArrayQueue Class |
Namespace: Crosser.Server.Utilities.Queue
public class BlockingByteArrayQueue : IDisposable
The BlockingByteArrayQueue type exposes the following members.
Name | Description | |
---|---|---|
BlockingByteArrayQueue |
Ctor with reference to IProtocol since this is used to update client statistics
|
Name | Description | |
---|---|---|
Dispose |
Dispose the queue
| |
Enqueue |
Add a new item to the queue.
If the queue is full the OnQueueFull event will be invoked
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryDequeue |
Get an item from the queue. If the queue is empty the method will block until there is an item to return
If the queue is empty the OnQueueEmpty event will be invoked
|
Name | Description | |
---|---|---|
OnQueueEmpty |
Event called when the queue is empty
| |
OnQueueFull |
Event called when the queue is full
|