Class LimitedDurationDispatcher

  • All Implemented Interfaces:
    BitstreamDispatcher

    public class LimitedDurationDispatcher
    extends Object
    implements BitstreamDispatcher

    A delegating dispatcher that puts a time limit on the operation of another dispatcher.

    Unit testing this class would be possible by abstracting the system time into an abstract clock. We decided this was not worth the candle.

    Author:
    Jim Downing, Grace Carpenter, Nathan Sarr
    • Constructor Detail

      • LimitedDurationDispatcher

        public LimitedDurationDispatcher​(BitstreamDispatcher dispatcher,
                                         Date endTime)
        Main constructor.
        Parameters:
        dispatcher - Delegate dispatcher that will do the heavy lifting of the dispatching work.
        endTime - when this dispatcher will stop returning valid bitstream ids.