public class CacheEntryParams
extends java.lang.Object
Constructor and Description |
---|
CacheEntryParams()
Constructs a cache param without group and latency, not pinned
|
CacheEntryParams(java.lang.String group,
int secondsToLive)
Constructs a cache param with group and latency, not pinned
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroup()
Returns the cache group
|
int |
getSecondsToLive()
Returns the cache entry latency in seconds
|
void |
setGroup(java.lang.String group)
Sets the cache group
|
void |
setSecondsToLive(int secondsToLive)
Sets the cache entry latency in seconds
|
public CacheEntryParams()
public CacheEntryParams(java.lang.String group, int secondsToLive)
group
- Cache groupsecondsToLive
- Cache entry latency in secondspublic java.lang.String getGroup()
public void setGroup(java.lang.String group)
public int getSecondsToLive()
public void setSecondsToLive(int secondsToLive)