@FunctionalInterface
public interface CacheDataExporter
extends org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
CacheDataExporter
interface is a FunctionalInterface
defining a contract for exporting data
from a cache Region
.FunctionalInterface
,
Region
,
DestructionAwareBeanPostProcessor
,
ResolvableRegionFactoryBean
Modifier and Type | Method and Description |
---|---|
org.apache.geode.cache.Region |
exportFrom(org.apache.geode.cache.Region region)
Exports data contained in the given
Region . |
default void |
postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String beanName)
Exports any data contained in a
Region on destruction. |
default void postProcessBeforeDestruction(java.lang.Object bean, java.lang.String beanName) throws org.springframework.beans.BeansException
Region
on destruction.postProcessBeforeDestruction
in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
bean
- Object
bean to evaluate.beanName
- String
containing the name of the bean.org.springframework.beans.BeansException
- if exporting data from a Region
fails!Region
,
exportFrom(Region)
@NonNull org.apache.geode.cache.Region exportFrom(@NonNull org.apache.geode.cache.Region region)
Region
.region
- Region
to export data from.Region
.Region