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:
-
FunctionalInterface
Region
DestructionAwareBeanPostProcessor
ResolvableRegionFactoryBean
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.Region
exportFrom
(org.apache.geode.cache.Region region) Exports data contained in the givenRegion
.default void
postProcessBeforeDestruction
(Object bean, String beanName) Exports any data contained in aRegion
on destruction.Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization, postProcessBeforeInitialization
Methods 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 aRegion
on destruction.- Specified by:
postProcessBeforeDestruction
in interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
- Parameters:
bean
-Object
bean to evaluate.beanName
-String
containing the name of the bean.- Throws:
org.springframework.beans.BeansException
- if exporting data from aRegion
fails!- See Also:
-
Region
exportFrom(Region)
-
exportFrom
@NonNull org.apache.geode.cache.Region exportFrom(@NonNull org.apache.geode.cache.Region region) Exports data contained in the givenRegion
.- Parameters:
region
-Region
to export data from.- Returns:
- the given
Region
. - See Also:
-
Region
-