Package org.springframework.geode.cache
Class RepositoryCacheLoader<T,ID>
java.lang.Object
org.springframework.geode.cache.support.RepositoryCacheLoaderWriterSupport<T,ID>
org.springframework.geode.cache.RepositoryCacheLoader<T,ID>
- All Implemented Interfaces:
org.apache.geode.cache.CacheCallback
,org.apache.geode.cache.CacheLoader<ID,
,T> org.apache.geode.cache.CacheWriter<ID,
,T> org.apache.geode.cache.Declarable
,org.springframework.beans.factory.Aware
,org.springframework.context.EnvironmentAware
,CacheLoaderSupport<ID,
,T> CacheWriterSupport<ID,
T>
A
CacheLoader
implementation backed by a Spring Data CrudRepository
used to load an entity
from an external data source.- Since:
- 1.1.0
- See Also:
-
CacheLoader
CrudRepository
CacheLoaderSupport
-
Field Summary
Fields inherited from class org.springframework.geode.cache.support.RepositoryCacheLoaderWriterSupport
DATA_ACCESS_ERROR, NUKE_AND_PAVE_PROPERTY
-
Constructor Summary
ConstructorDescriptionRepositoryCacheLoader
(org.springframework.data.repository.CrudRepository<T, ID> repository) -
Method Summary
Methods inherited from class org.springframework.geode.cache.support.RepositoryCacheLoaderWriterSupport
doRepositoryOp, getEnvironment, getRepository, isNukeAndPaveEnabled, setEnvironment, with
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.geode.cache.support.CacheLoaderSupport
close
Methods inherited from interface org.springframework.geode.cache.support.CacheWriterSupport
beforeCreate, beforeDestroy, beforeRegionClear, beforeRegionDestroy, beforeUpdate
Methods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Field Details
-
CACHE_LOAD_EXCEPTION_MESSAGE
- See Also:
-
-
Constructor Details
-
RepositoryCacheLoader
-
-
Method Details
-
load
-
newCacheRuntimeException
protected org.apache.geode.cache.CacheRuntimeException newCacheRuntimeException(Supplier<String> messageSupplier, Throwable cause) - Specified by:
newCacheRuntimeException
in classRepositoryCacheLoaderWriterSupport<T,
ID>
-