Spring Boot for VMware GemFire
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:
-
CacheLoaderCrudRepositoryCacheLoaderSupport
-
Field Summary
FieldsFields inherited from class org.springframework.geode.cache.support.RepositoryCacheLoaderWriterSupport
DATA_ACCESS_ERROR, NUKE_AND_PAVE_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryCacheLoader(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, withMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.geode.cache.support.CacheLoaderSupport
closeMethods inherited from interface org.springframework.geode.cache.support.CacheWriterSupport
beforeCreate, beforeDestroy, beforeRegionClear, beforeRegionDestroy, beforeUpdateMethods 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:
newCacheRuntimeExceptionin classRepositoryCacheLoaderWriterSupport<T,ID>
-