You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Jake.zhang (Jira)" <ji...@apache.org> on 2020/04/20 10:26:00 UTC

[jira] [Created] (FLINK-17265) uniform time and timeUnit use

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)