Class TimedWeightedPriorityMessageQueue

java.lang.Object
net.i2p.router.transport.udp.TimedWeightedPriorityMessageQueue
All Implemented Interfaces:
MessageQueue, OutboundMessageFragments.ActiveThrottle

class TimedWeightedPriorityMessageQueue extends Object implements MessageQueue, OutboundMessageFragments.ActiveThrottle
Weighted priority queue implementation for the outbound messages, coupled with code to fail messages that expire. WARNING - UNUSED since 0.6.1.11 See comments in DummyThrottle.java and mtn history ca. 2006-02-19
  • Constructor Details

    • TimedWeightedPriorityMessageQueue

      public TimedWeightedPriorityMessageQueue(RouterContext ctx, int[] priorityLimits, int[] weighting, TimedWeightedPriorityMessageQueue.FailedListener lsnr)
      Build up a new queue
      Parameters:
      priorityLimits - ordered breakpoint for the different message priorities, with the lowest limit first.
      weighting - how much to prefer a given priority grouping. specifically, this means how many messages in this queue should be pulled off in a row before moving on to the next.
  • Method Details