Class ThrottlingCounter

  • All Implemented Interfaces:
    Counter

    public class ThrottlingCounter
    extends Object
    implements Counter
    Counter that throttles a jms listener on a high and low water mark. When the counter reaches the high watermark the listener will be stopped. When the counter reaches the low watermark the listener will be started.
    • Constructor Detail

      • ThrottlingCounter

        public ThrottlingCounter​(int lowWatermark,
                                 int highWatermark)