Class TimeLimitingCollector

    • Constructor Detail

      • TimeLimitingCollector

        public TimeLimitingCollector​(Collector collector,
                                     Counter clock,
                                     long ticksAllowed)
        Create a TimeLimitedCollector wrapper over another Collector with a specified timeout.
        Parameters:
        collector - the wrapped Collector
        clock - the timer clock
        ticksAllowed - max time allowed for collecting hits after which TimeLimitingCollector.TimeExceededException is thrown