tree: dd9e089c720c8b4adb4e5a8d9ceead3633d5cae9 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
examples/throttle/README.md

Application shows you how to throttle input operators in the application when the downstream operators are slower.

It uses a combination of stats listener and operator request to achieve this. The throttler is a stats listener that is registered with the operators and when it notices that the window gap between operators is widening and crosses a configured threshold, it sends a request to the input operator to slow down and coversely when the gap falls below the threshold it requests the input operator to go back to its normal speed.