Package org.springframework.geode.data
Interface CacheDataImporter
- All Superinterfaces:
org.springframework.beans.factory.config.BeanPostProcessor
- All Known Subinterfaces:
CacheDataImporterExporter
- All Known Implementing Classes:
AbstractCacheDataImporterExporter
,JsonCacheDataImporterExporter
,LifecycleAwareCacheDataImporterExporter
,ResourceCapableCacheDataImporterExporter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface CacheDataImporter
extends org.springframework.beans.factory.config.BeanPostProcessor
The
CacheDataImporter
interface is a FunctionalInterface
defininig a contract for importing data
into a cache Region
.- Since:
- 1.3.0
- See Also:
-
FunctionalInterface
Region
BeanPostProcessor
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.Region
importInto
(org.apache.geode.cache.Region region) Imports data into the givenRegion
.default Object
postProcessAfterInitialization
(Object bean, String beanName) Imports data from an external data source into a givenRegion
after initialization.Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Method Details
-
postProcessAfterInitialization
@Nullable default Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException Imports data from an external data source into a givenRegion
after initialization.- Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Parameters:
bean
-Object
bean to evaluate.beanName
-String
containing the name of the bean.- Throws:
org.springframework.beans.BeansException
- if importing data into aRegion
fails!- See Also:
-
Region
importInto(Region)
-
importInto
@NonNull org.apache.geode.cache.Region importInto(@NonNull org.apache.geode.cache.Region region) Imports data into the givenRegion
.- Parameters:
region
-Region
to import data into.- Returns:
- the given
Region
. - See Also:
-
Region
-