public interface ICdmCacher
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
boolean |
exists(CdmBase cdmBase) |
<T extends CdmBase> |
getFromCache(T cdmBase)
Retrieves the cached version of the passed entity from the cache if it
exists in there.
|
boolean |
isCachable(CdmBase cdmEntity) |
<T extends CdmBase> |
load(T cdmEntity)
Load into the cache and return the entity from the cache.
|
void |
put(CdmBase cdmEntity)
Puts the passed
cdmEntity into the cache as long it does not
yet exist in the cache. |
<T extends CdmBase> T getFromCache(T cdmBase)
cdmBase
- the cdm entity to find in the cachenull
void put(CdmBase cdmEntity)
cdmEntity
into the cache as long it does not
yet exist in the cache.cdmEntity
- <T extends CdmBase> T load(T cdmEntity)
cdmEntity
passed to this method.cdmEntity
- boolean isCachable(CdmBase cdmEntity)
cdmEntity
- cdmEntity
is cacheable by the
implementationboolean exists(CdmBase cdmBase)
cdmBase
- cdmEntity
is found in the cachevoid dispose()
Copyright © 2007-2020 EDIT. All Rights Reserved.