public BoundedMessageQueue ( int boundedCapacity, System.TimeSpan pushTimeOut ) : System | ||
boundedCapacity | int | |
pushTimeOut | System.TimeSpan | |
return | System |
public BoundedMessageQueue(int boundedCapacity, TimeSpan pushTimeOut)
{
if (boundedCapacity < 0)
{
throw new ArgumentException("The capacity for BoundedMessageQueue can not be negative");
}
else if (boundedCapacity == 0)
{
_queue = new BlockingCollection<Envelope>();
}
else
{
_queue = new BlockingCollection<Envelope>(boundedCapacity);
}
}
BoundedMessageQueue::BoundedMessageQueue ( ) : System | |
BoundedMessageQueue::BoundedMessageQueue ( |