tree: f37402e975b745bd5f2b40fb9abd1f5e36d21eac [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.