public DeliveryStrategy(InputQueueChannel <ItemType> channel, int quota)
 {
     if (quota <= 0)
     {
         throw Fx.AssertAndThrow("Argument quota must be positive.");
     }
     this.channel = channel;
     this.quota   = quota;
 }
Beispiel #2
0
 public OrderedDeliveryStrategy(
     InputQueueChannel <ItemType> channel,
     int quota,
     bool isEnqueueInOrder)
     : base(channel, quota)
 {
     this.isEnqueueInOrder = isEnqueueInOrder;
     items       = new Dictionary <Int64, ItemType>();
     windowStart = 1;
 }
 public PeerMessageQueueAdapter(InputQueueChannel <Message> inputQueueChannel)
 {
     this.inputQueueChannel = inputQueueChannel;
 }
Beispiel #4
0
 public UnorderedDeliveryStrategy(InputQueueChannel <ItemType> channel, int quota)
     : base(channel, quota)
 {
 }