public final class Time extends AbstractTime
| Modifier and Type | Method and Description |
|---|---|
static Time |
days(long days)
Creates a new
Time that represents the given number of days. |
static Time |
hours(long hours)
Creates a new
Time that represents the given number of hours. |
AbstractTime |
makeSpecificBasedOnTimeCharacteristic(TimeCharacteristic timeCharacteristic) |
static Time |
milliseconds(long milliseconds)
Creates a new
Time that represents the given number of milliseconds. |
static Time |
minutes(long minutes)
Creates a new
Time that represents the given number of minutes. |
static Time |
of(long size,
TimeUnit unit)
|
static Time |
seconds(long seconds)
Creates a new
Time that represents the given number of seconds. |
equals, getSize, getUnit, hashCode, toMilliseconds, toStringpublic AbstractTime makeSpecificBasedOnTimeCharacteristic(TimeCharacteristic timeCharacteristic)
makeSpecificBasedOnTimeCharacteristic in class AbstractTimepublic static Time of(long size, TimeUnit unit)
Time of the given duration and TimeUnit.
The Time refers to the time characteristic that is set on the dataflow via
StreamExecutionEnvironment.setStreamTimeCharacteristic(org.apache.flink.streaming.api.TimeCharacteristic).
size - The duration of time.unit - The unit of time of the duration, for example TimeUnit.SECONDS.public static Time milliseconds(long milliseconds)
Time that represents the given number of milliseconds.public static Time seconds(long seconds)
Time that represents the given number of seconds.public static Time minutes(long minutes)
Time that represents the given number of minutes.public static Time hours(long hours)
Time that represents the given number of hours.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.