Click or drag to resize

DelayQueueE Class

An unbounded blocking queue of IDelayed elements, in which an element can only be taken when its delay has expired.
Inheritance Hierarchy
SystemObject
  OBCOM.NetSwitchLib.UtilsDelayQueueE

Namespace:  OBCOM.NetSwitchLib.Utils
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public sealed class DelayQueue<E>
where E : class, IDelayed

Type Parameters

E
The type of the delayed element.

The DelayQueueE type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of elements in this queue.
Top
Methods
  NameDescription
Public methodAdd
Inserts the specified element into this delay queue.
Public methodClear
Removes all of the elements from this queue.
Public methodEquals
Determines whether the specified object is equal to the current object.
(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.)
Public methodPeek
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
Public methodPoll
Retrieves and removes the head of this queue, or returns null if this queue has no elements with an expired delay.
Public methodPoll(Int64)
Retrieves and removes the head of this queue, waiting if necessary until an element with an expired delay is available on this queue, or the specified wait time expires.
Public methodRemove
Removes a single instance of the specified element from this queue, if it is present, whether or not it has expired.
Public methodTake
Retrieves and removes the head of this queue, waiting if necessary until an element with an expired delay is available on this queue.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also