public DeliveryStrategy(InputQueueChannel <ItemType> channel, int quota) { if (quota <= 0) { throw Fx.AssertAndThrow("Argument quota must be positive."); } this.channel = channel; this.quota = quota; }
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; }
public UnorderedDeliveryStrategy(InputQueueChannel <ItemType> channel, int quota) : base(channel, quota) { }