Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17265

uniform time and timeUnit use

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.10.0
    • None
    • API / Scala
    • 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

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ft20082 Jake.zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: