Class Time


  • @Deprecated
    @Public
    public final class Time
    extends Object
    Deprecated.
    Use Duration
    The definition of a time interval for windowing. The time characteristic referred to is the default time characteristic set on the execution environment.
    • Method Detail

      • getUnit

        public TimeUnit getUnit()
        Deprecated.
        Gets the time unit for this policy's time interval.
        Returns:
        The time unit for this policy's time interval.
      • getSize

        public long getSize()
        Deprecated.
        Gets the length of this policy's time interval.
        Returns:
        The length of this policy's time interval.
      • toMilliseconds

        public long toMilliseconds()
        Deprecated.
        Converts the time interval to milliseconds.
        Returns:
        The time interval in milliseconds.
      • toDuration

        public java.time.Duration toDuration()
        Deprecated.
      • milliseconds

        public static Time milliseconds​(long milliseconds)
        Deprecated.
        Creates a new Time that represents the given number of milliseconds.
      • seconds

        public static Time seconds​(long seconds)
        Deprecated.
        Creates a new Time that represents the given number of seconds.
      • minutes

        public static Time minutes​(long minutes)
        Deprecated.
        Creates a new Time that represents the given number of minutes.
      • hours

        public static Time hours​(long hours)
        Deprecated.
        Creates a new Time that represents the given number of hours.
      • days

        public static Time days​(long days)
        Deprecated.
        Creates a new Time that represents the given number of days.