public class IsisCacheBackendOnReferenceMap extends Object implements IsisCacheBackend
| Modifier and Type | Class and Description |
|---|---|
static class |
IsisCacheBackendOnReferenceMap.IsisCacheBackendOnReferenceMapFactory |
IsisCacheBackend.Factory| Modifier and Type | Field and Description |
|---|---|
protected Map |
cache
map<TimeStep, Map<Key, Value>>
TimeStep peut etre null via l'objet NULL
Key est la cle calcule par computeKey
Value est la valeur du cache
TimeStep est en WEAK pour que des que l'on passe au pas de temps suivant
ils soit efface de la memoire si plus personne n'a de reference sur
ce pas de temps.
|
static IsisCacheBackend.Factory |
factory |
| Constructor and Description |
|---|
IsisCacheBackendOnReferenceMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
remove all values in cache
|
Object |
get(TimeStep step,
String key) |
protected Map |
getCacheTimeStep(TimeStep step) |
String |
getStat()
get specific backend cache statistic
|
void |
put(TimeStep step,
String key,
Object value) |
void |
removeStep(Object o)
remove all values in cache for the specified TimeStep
|
public static IsisCacheBackend.Factory factory
protected Map cache
public Object get(TimeStep step, String key)
get in interface IsisCacheBackendpublic void put(TimeStep step, String key, Object value)
put in interface IsisCacheBackendpublic void clear()
clear in interface IsisCacheBackendpublic void removeStep(Object o)
removeStep in interface IsisCacheBackendpublic String getStat()
IsisCacheBackendgetStat in interface IsisCacheBackendCopyright © 1999–2015 CodeLutin. All rights reserved.