-
Type:
Improvement
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.12.0, 1.11.2
-
Component/s: API / DataStream, Documentation
-
Labels:
According to the JavaDocs of WatermarkStrategy.withTimestampAssigner one can define a watermark strategy with the following code:
WatermarkStrategy<CustomObject> wmStrategy = WatermarkStrategy .forMonotonousTimestamps() .withTimestampAssigner((event, timestamp) -> event.getTimestamp());
However because of https://e.printstacktrace.blog/java-type-inference-generic-methods-chain-call/, this won't compile.
- links to