Click or drag to resize

BlockingByteArrayQueue Class

Blocing queue for byte arrays
Inheritance Hierarchy
SystemObject
  Crosser.Server.Utilities.QueueBlockingByteArrayQueue

Namespace:  Crosser.Server.Utilities.Queue
Assembly:  Crosser.Server (in Crosser.Server.dll) Version: 0.0.5
Syntax
C#
public class BlockingByteArrayQueue : IDisposable

The BlockingByteArrayQueue type exposes the following members.

Constructors
  NameDescription
Public methodBlockingByteArrayQueue
Ctor with reference to IProtocol since this is used to update client statistics
Top
Properties
  NameDescription
Public propertyCount
Number of items currently in the queue
Top
Methods
  NameDescription
Public methodDispose
Dispose the queue
Public methodEnqueue
Add a new item to the queue. If the queue is full the OnQueueFull event will be invoked
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryDequeue
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
Top
Fields
  NameDescription
Public fieldOnQueueEmpty
Event called when the queue is empty
Public fieldOnQueueFull
Event called when the queue is full
Top
See Also