Jake.zhang created FLINK-17265:
----------------------------------
Summary: uniform time and timeUnit use
Key: FLINK-17265
URL:
https://issues.apache.org/jira/browse/FLINK-17265 Project: Flink
Issue Type: Wish
Components: API / Scala
Affects Versions: 1.10.0
Reporter: Jake.zhang
// set restart strategy
{code:java}
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))){code}
// set window time
{code:java}
// import org.apache.flink.streaming.api.windowing.time.Time
.timeWindow(Time.minutes(1)){code}
It is strongly recommanded to unify Time and TimeUnit
--
This message was sent by Atlassian Jira
(v8.3.4#803005)