Class CacheSlot
- java.lang.Object
-
- org.neotropic.kuwaiba.core.persistence.reference.extras.caching.CacheSlot
-
public class CacheSlot extends Object
A slot cache allows the caching of complex objects- Author:
- Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCallback()
Object
getContent()
long
getLastUpdate()
long
getLifeExpectancy()
boolean
isExpired()
void
setCallback(String callback)
void
setContent(Object content)
void
setLastUpdate(long lastUpdate)
void
setLifeExpectancy(long lifeExpectancy)
-
-
-
Constructor Detail
-
CacheSlot
public CacheSlot(Object content, long lastUpdate, long lifeExpectancy)
-
-
Method Detail
-
getContent
public Object getContent()
-
setContent
public void setContent(Object content)
-
getLastUpdate
public long getLastUpdate()
-
setLastUpdate
public void setLastUpdate(long lastUpdate)
-
getLifeExpectancy
public long getLifeExpectancy()
-
setLifeExpectancy
public void setLifeExpectancy(long lifeExpectancy)
-
getCallback
public String getCallback()
-
setCallback
public void setCallback(String callback)
-
isExpired
public boolean isExpired()
-
-