|
IMC Epclient 5.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.enterprise.cache.ICacheDescriptor
This class provides information describing the caching behaviour of a named cache.
| Field Summary | |
static int |
MILLIS_PER_HOUR
|
static int |
MILLIS_PER_MINUTE
|
static int |
MILLIS_PER_SECOND
|
| Constructor Summary | |
ICacheDescriptor()
|
|
| Method Summary | |
abstract long |
getMaxAgeMillis()
Returns the maximum time in milliseconds a cache entry should be accessible in the chache. |
int |
getMaxAgeSpreadPct()
If the value provided by this method is not zero, the time a cache entry resides in the cache before it is beeing evicted is spread to a percentage around getMaxAgeMillis(). |
abstract int |
getMaxSize()
Returns the maximum number of cached entries in the described cache. |
abstract java.lang.String |
getName()
Returns the name of the described cache. |
abstract boolean |
isTransparent()
Returns true if the described cache is a transparent cache, which can load objects by the load method of this descriptor |
abstract java.lang.Object |
load(java.lang.Object key)
This is the load method of a transparent cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MILLIS_PER_SECOND
public static final int MILLIS_PER_MINUTE
public static final int MILLIS_PER_HOUR
| Constructor Detail |
public ICacheDescriptor()
| Method Detail |
public abstract java.lang.String getName()
public abstract boolean isTransparent()
public abstract java.lang.Object load(java.lang.Object key)
This method may be called in parallel from many threads. You must not access instance variables in this method.
key - the key for which a value should be loaded.
public abstract long getMaxAgeMillis()
public int getMaxAgeSpreadPct()
The default implementation of this method is no spread at all.
public abstract int getMaxSize()
|
IMC Epclient 5.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||