Class QueueManager<T>
This class holds a queue and is thread safe
Inheritance
System.Object
QueueManager<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.MirroringService.Common
Assembly: EPiServer.Enterprise.dll
Version: 8.11.0Syntax
public class QueueManager<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
QueueManager()
Declaration
public QueueManager()
QueueManager(Boolean)
Declaration
public QueueManager(bool pulse)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | pulse |
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Empty
Gets a value indicating whether this QueueManager<T> is empty.
Declaration
public bool Empty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
LockedObject
Gets the locked object.
Declaration
public object LockedObject { get; }
Property Value
Type | Description |
---|---|
System.Object | The locked object. |
Methods
Clear()
Clears the queue.
Declaration
public void Clear()
Dequeue(Int32)
Declaration
public void Dequeue(int numberOfItems)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numberOfItems |
Enqueue(T)
Enqueues the specified mirroing queue item. When the item be inserted in the queue then does a pulse to waiting thread for continuing executing
Declaration
public void Enqueue(T mirroingQueueItem)
Parameters
Type | Name | Description |
---|---|---|
T | mirroingQueueItem | The mirroing queue item. |
TryToDequeue(out T)
Tries to dequeue.
Declaration
public bool TryToDequeue(out T queueItem)
Parameters
Type | Name | Description |
---|---|---|
T | queueItem | The queue item. |
Returns
Type | Description |
---|---|
System.Boolean | true if the queue is not empty |