Class SpeedLimitStream

    • Field Detail

      • MAX_WAIT_TIME

        public static final long MAX_WAIT_TIME
        maximum time to wait if SPEED is ORIGINAL meaning that if there is a gap in the data longer than this, we continue)
        See Also:
        Constant Field Values
    • Method Detail

      • setSubscribedStream

        public void setSubscribedStream​(Stream s)
      • doStart

        public void doStart()
        Description copied from class: Stream
        Start emitting tuples.
        Specified by:
        doStart in class Stream
      • streamClosed

        public void streamClosed​(Stream stream)
        Called when the subcribed stream is closed we close this stream also.
        Specified by:
        streamClosed in interface StreamSubscriber
      • setSpeedSpec

        public void setSpeedSpec​(SpeedSpec speedSpec)
      • doClose

        protected void doClose()
        Specified by:
        doClose in class Stream
      • changeSpeed

        public void changeSpeed​(SpeedSpec speedSpec)