Class BlockingQueueAdapter<TE>
Inheritance
System.Object
BlockingQueueAdapter<TE>
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.Common.Threading.Queue
Assembly: FixAntenna.Common.dll
Syntax
public class BlockingQueueAdapter<TE> : ISimpleBlockingQueue<TE>
Type Parameters
Name | Description |
---|---|
TE |
Constructors
BlockingQueueAdapter(BlockingCollection<TE>)
Declaration
public BlockingQueueAdapter(BlockingCollection<TE> queue)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Concurrent.BlockingCollection<TE> | queue |
Methods
IsEmpty()
Declaration
public virtual bool IsEmpty()
Returns
Type | Description |
---|---|
System.Boolean |
Put(TE)
Declaration
public virtual void Put(TE item)
Parameters
Type | Name | Description |
---|---|---|
TE | item |
Size()
Declaration
public virtual int Size()
Returns
Type | Description |
---|---|
System.Int32 |
Take()
Declaration
public virtual TE Take()
Returns
Type | Description |
---|---|
TE |