Class TestCacheValueLoader
- java.lang.Object
-
- de.hybris.platform.regioncache.test.TestCacheValueLoader
-
- All Implemented Interfaces:
CacheValueLoader
public class TestCacheValueLoader extends java.lang.Object implements CacheValueLoader
-
-
Constructor Summary
Constructors Constructor Description TestCacheValueLoader()TestCacheValueLoader(java.lang.Object val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLoads()java.lang.ObjectgetVal()java.lang.Objectload(CacheKey key)Used by cache region to load missing value.
This method does not have to be thread safe.
If CacheValueLoadException thrown unit is not added to cache.
-
-
-
Method Detail
-
load
public java.lang.Object load(CacheKey key) throws CacheValueLoadException
Description copied from interface:CacheValueLoaderUsed by cache region to load missing value.
This method does not have to be thread safe.
If CacheValueLoadException thrown unit is not added to cache.- Specified by:
loadin interfaceCacheValueLoader- Throws:
CacheValueLoadException
-
getLoads
public int getLoads()
-
getVal
public java.lang.Object getVal()
-
-