Package org.springframework.geode.data
Interface CacheDataExporter
- All Superinterfaces:
org.springframework.beans.factory.config.BeanPostProcessor,org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
- 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 CacheDataExporter
extends org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
The
CacheDataExporter interface is a FunctionalInterface defining a contract for exporting data
from a cache Region.- Since:
- 1.3.0
- See Also:
-
FunctionalInterfaceRegionDestructionAwareBeanPostProcessorResolvableRegionFactoryBean
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.RegionexportFrom(org.apache.geode.cache.Region region) Exports data contained in the givenRegion.default voidpostProcessBeforeDestruction(Object bean, String beanName) Exports any data contained in aRegionon destruction.Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization, postProcessBeforeInitializationMethods inherited from interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
requiresDestruction
-
Method Details
-
postProcessBeforeDestruction
default void postProcessBeforeDestruction(Object bean, String beanName) throws org.springframework.beans.BeansException Exports any data contained in aRegionon destruction.- Specified by:
postProcessBeforeDestructionin interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor- Parameters:
bean-Objectbean to evaluate.beanName-Stringcontaining the name of the bean.- Throws:
org.springframework.beans.BeansException- if exporting data from aRegionfails!- See Also:
-
RegionexportFrom(Region)
-
exportFrom
@NonNull org.apache.geode.cache.Region exportFrom(@NonNull org.apache.geode.cache.Region region) Exports data contained in the givenRegion.- Parameters:
region-Regionto export data from.- Returns:
- the given
Region. - See Also:
-
Region
-