public class TtlUtils
extends java.lang.Object
| Constructor and Description |
|---|
TtlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getTtlLong(java.lang.String strTtl)
Converts a duration string to a long ms value
|
static java.lang.String |
toTtlStr(long ttl)
The Time to live is defined as the amount of time for which deploy is considered valid.
|
public static long getTtlLong(java.lang.String strTtl)
strTtl - the string to convertpublic static java.lang.String toTtlStr(long ttl)
ttl - the time to live in ms