...
- It's concise and is a builder kind of interface which is more descriptive when applied to
TimeWindowedKStream
andSessionWindowedKStream
- In option 2, I feel
WindowConfig
should already be part of Window. Then in option 3, I feelEMIT_FINAL
andEMIT_EAGER
should be applied toStream
instead ofWindow
The drawbacks of option 1 and 2 are:
- Not every type windows can support emit final. For example,
UnlimitedWindows
shouldn't support emit final.