public class ExpiryDate extends Object
| Modifier and Type | Method and Description |
|---|---|
static ExpiryDate |
fromAbsolute(long expiryDate)
NOTE: relative Ttl can be negative if the ExpiryDate passed in was in the past
|
static ExpiryDate |
fromRelativeTtl(long relativeTtl) |
long |
getCreationTime() |
long |
getRelativeTtl() |
long |
getValue() |
String |
toString() |
public static ExpiryDate fromRelativeTtl(long relativeTtl)
relativeTtl - milliseconds until the ttl expirespublic static ExpiryDate fromAbsolute(long expiryDate)
expiryDate - time measured in milliseconds, between the current time and midnight, January 1, 1970 UTCpublic long getValue()
public long getRelativeTtl()
public long getCreationTime()
Copyright © 2021. All rights reserved.