Class EvictionConfiguration.ComposableEvictionPolicyConfigurer
java.lang.Object
org.springframework.data.gemfire.config.annotation.EvictionConfiguration.ComposableEvictionPolicyConfigurer
- All Implemented Interfaces:
EvictionConfiguration.EvictionPolicyConfigurer
- Enclosing class:
- EvictionConfiguration
protected static class EvictionConfiguration.ComposableEvictionPolicyConfigurer
extends Object
implements EvictionConfiguration.EvictionPolicyConfigurer
EvictionConfiguration.ComposableEvictionPolicyConfigurer
is a EvictionConfiguration.EvictionPolicyConfigurer
implementation that composes
multiple EvictionConfiguration.EvictionPolicyConfigurer
objects into a composition using the Composite Software Design Pattern
making the composition appear as a single EvictionConfiguration.EvictionPolicyConfigurer
.-
Method Summary
Modifier and TypeMethodDescriptionprotected static EvictionConfiguration.EvictionPolicyConfigurer
Composes theIterable
ofEvictionConfiguration.EvictionPolicyConfigurer
objects into a singleEvictionConfiguration.EvictionPolicyConfigurer
implementation using the Composite Software Design Pattern.protected static EvictionConfiguration.EvictionPolicyConfigurer
Composes the array ofEvictionConfiguration.EvictionPolicyConfigurer
objects into a singleEvictionConfiguration.EvictionPolicyConfigurer
implementation using the Composite Software Design Pattern.protected static EvictionConfiguration.EvictionPolicyConfigurer
compose
(EvictionConfiguration.EvictionPolicyConfigurer one, EvictionConfiguration.EvictionPolicyConfigurer two) Composes twoEvictionConfiguration.EvictionPolicyConfigurer
objects into a composition object implementing theEvictionConfiguration.EvictionPolicyConfigurer
interface.Configure the Eviction policy on the given SDGClientRegionFactoryBean
orPeerRegionFactoryBean
used to create an Apache GeodeRegion
.org.apache.geode.cache.Region<?,
?> configure
(org.apache.geode.cache.Region<?, ?> region) Configures the Eviction policy of the given Apache GeodeRegion
.
-
Method Details
-
compose
@Nullable protected static EvictionConfiguration.EvictionPolicyConfigurer compose(EvictionConfiguration.EvictionPolicyConfigurer[] array) Composes the array ofEvictionConfiguration.EvictionPolicyConfigurer
objects into a singleEvictionConfiguration.EvictionPolicyConfigurer
implementation using the Composite Software Design Pattern.- Parameters:
array
- array ofEvictionConfiguration.EvictionPolicyConfigurer
objects to compose.- Returns:
- an
EvictionConfiguration.EvictionPolicyConfigurer
implementation composed from the array ofEvictionConfiguration.EvictionPolicyConfigurer
objects. - See Also:
-
compose
@Nullable protected static EvictionConfiguration.EvictionPolicyConfigurer compose(Iterable<EvictionConfiguration.EvictionPolicyConfigurer> iterable) Composes theIterable
ofEvictionConfiguration.EvictionPolicyConfigurer
objects into a singleEvictionConfiguration.EvictionPolicyConfigurer
implementation using the Composite Software Design Pattern.- Parameters:
iterable
-Iterable
ofEvictionConfiguration.EvictionPolicyConfigurer
objects to compose.- Returns:
- an
EvictionConfiguration.EvictionPolicyConfigurer
implementation composed from theIterable
ofEvictionConfiguration.EvictionPolicyConfigurer
objects. - See Also:
-
compose
@Nullable protected static EvictionConfiguration.EvictionPolicyConfigurer compose(@Nullable EvictionConfiguration.EvictionPolicyConfigurer one, @Nullable EvictionConfiguration.EvictionPolicyConfigurer two) Composes twoEvictionConfiguration.EvictionPolicyConfigurer
objects into a composition object implementing theEvictionConfiguration.EvictionPolicyConfigurer
interface.- Parameters:
one
- firstEvictionConfiguration.EvictionPolicyConfigurer
object to compose.two
- secondEvictionConfiguration.EvictionPolicyConfigurer
object to compose.- Returns:
- an
EvictionConfiguration.EvictionPolicyConfigurer
object implementation composed of multipleEvictionConfiguration.EvictionPolicyConfigurer
objects using the Composite Software Design Pattern.
-
configure
Description copied from interface:EvictionConfiguration.EvictionPolicyConfigurer
Configure the Eviction policy on the given SDGClientRegionFactoryBean
orPeerRegionFactoryBean
used to create an Apache GeodeRegion
.- Specified by:
configure
in interfaceEvictionConfiguration.EvictionPolicyConfigurer
- Parameters:
regionBean
-ClientRegionFactoryBean
orPeerRegionFactoryBean
used to create an Apache GeodeRegion
.- Returns:
- the given
regionFactoryBean
. - See Also:
-
configure
public org.apache.geode.cache.Region<?,?> configure(org.apache.geode.cache.Region<?, ?> region) Description copied from interface:EvictionConfiguration.EvictionPolicyConfigurer
Configures the Eviction policy of the given Apache GeodeRegion
.- Specified by:
configure
in interfaceEvictionConfiguration.EvictionPolicyConfigurer
- Parameters:
region
-Region
on which to configure the Eviction policy.- Returns:
- the given
Region
. - See Also:
-
Region
-