public static class BaseWindowedBolt.Duration
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
value |
Constructor and Description |
---|
Duration(int value,
java.util.concurrent.TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
static BaseWindowedBolt.Duration |
days(int days)
Returns a
BaseWindowedBolt.Duration corresponding to the the given value in days. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static BaseWindowedBolt.Duration |
hours(int hours)
Returns a
BaseWindowedBolt.Duration corresponding to the the given value in hours. |
static BaseWindowedBolt.Duration |
minutes(int minutes)
Returns a
BaseWindowedBolt.Duration corresponding to the the given value in minutes. |
static BaseWindowedBolt.Duration |
of(int milliseconds)
Returns a
BaseWindowedBolt.Duration corresponding to the the given value in milli seconds. |
static BaseWindowedBolt.Duration |
seconds(int seconds)
Returns a
BaseWindowedBolt.Duration corresponding to the the given value in seconds. |
java.lang.String |
toString() |
public static BaseWindowedBolt.Duration of(int milliseconds)
BaseWindowedBolt.Duration
corresponding to the the given value in milli seconds.milliseconds
- the duration in millisecondspublic static BaseWindowedBolt.Duration days(int days)
BaseWindowedBolt.Duration
corresponding to the the given value in days.days
- the number of dayspublic static BaseWindowedBolt.Duration hours(int hours)
BaseWindowedBolt.Duration
corresponding to the the given value in hours.hours
- the number of hourspublic static BaseWindowedBolt.Duration minutes(int minutes)
BaseWindowedBolt.Duration
corresponding to the the given value in minutes.minutes
- the number of minutespublic static BaseWindowedBolt.Duration seconds(int seconds)
BaseWindowedBolt.Duration
corresponding to the the given value in seconds.seconds
- the number of secondspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object