Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.10.0
-
None
-
None
Description
// set restart strategy
env.setRestartStrategy(RestartStrategies.failureRateRestart(3, org.apache.flink.api.common.time.Time.of(5, TimeUnit.MINUTES), org.apache.flink.api.common.time.Time.of(10, TimeUnit.SECONDS)))
// set window time
// import org.apache.flink.streaming.api.windowing.time.Time
.timeWindow(Time.minutes(1))
It is strongly recommanded to unify Time and TimeUnit