Package org.apache.storm.kafka.spout
Class KafkaSpoutRetryExponentialBackoff.TimeInterval
- java.lang.Object
-
- org.apache.storm.kafka.spout.KafkaSpoutRetryExponentialBackoff.TimeInterval
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- KafkaSpoutRetryExponentialBackoff
public static class KafkaSpoutRetryExponentialBackoff.TimeInterval extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeInterval(long length, TimeUnit timeUnit)
Creates a new TimeInterval.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
lengthNanos()
static KafkaSpoutRetryExponentialBackoff.TimeInterval
microSeconds(long length)
static KafkaSpoutRetryExponentialBackoff.TimeInterval
milliSeconds(long length)
static KafkaSpoutRetryExponentialBackoff.TimeInterval
seconds(long length)
TimeUnit
timeUnit()
String
toString()
-
-
-
Method Detail
-
seconds
public static KafkaSpoutRetryExponentialBackoff.TimeInterval seconds(long length)
-
milliSeconds
public static KafkaSpoutRetryExponentialBackoff.TimeInterval milliSeconds(long length)
-
microSeconds
public static KafkaSpoutRetryExponentialBackoff.TimeInterval microSeconds(long length)
-
lengthNanos
public long lengthNanos()
-
timeUnit
public TimeUnit timeUnit()
-
-