Package com.configcat
Class Entry
- java.lang.Object
-
- com.configcat.Entry
-
public class Entry extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntryfromString(java.lang.String cacheValue)java.lang.StringgetCacheString()ConfiggetConfig()java.lang.StringgetETag()longgetFetchTime()booleanisExpired(long threshold)EntrywithFetchTime(long fetchTime)
-
-
-
Field Detail
-
EMPTY
public static final Entry EMPTY
-
-
Constructor Detail
-
Entry
public Entry(Config config, java.lang.String eTag, java.lang.String configJson, long fetchTime)
-
-
Method Detail
-
getConfig
public Config getConfig()
-
getETag
public java.lang.String getETag()
-
getFetchTime
public long getFetchTime()
-
getCacheString
public java.lang.String getCacheString()
-
withFetchTime
public Entry withFetchTime(long fetchTime)
-
isExpired
public boolean isExpired(long threshold)
-
fromString
public static Entry fromString(java.lang.String cacheValue) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
-