Package org.hippoecm.hst.cache
Interface CacheElement
-
public interface CacheElement
Interface for cached element. Abstraction around physical cache implementation.- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getContent()
Object
getKey()
int
getTimeToIdleSeconds()
int
getTimeToLiveSeconds()
boolean
isCacheable()
boolean
isEternal()
void
setEternal(boolean eternal)
void
setTimeToIdleSeconds(int timeToIdle)
void
setTimeToLiveSeconds(int timeToLive)
-
-
-
Method Detail
-
getKey
Object getKey()
-
getContent
Object getContent()
-
getTimeToLiveSeconds
int getTimeToLiveSeconds()
-
setTimeToLiveSeconds
void setTimeToLiveSeconds(int timeToLive)
-
getTimeToIdleSeconds
int getTimeToIdleSeconds()
-
setTimeToIdleSeconds
void setTimeToIdleSeconds(int timeToIdle)
-
isEternal
boolean isEternal()
-
setEternal
void setEternal(boolean eternal)
-
isCacheable
boolean isCacheable()
- Returns:
true
is this element is suited to be cached
-
-