Class ExpirationConfiguration.ComposableExpirationPolicyConfigurer
java.lang.Object
org.springframework.data.gemfire.config.annotation.ExpirationConfiguration.ComposableExpirationPolicyConfigurer
- All Implemented Interfaces:
ExpirationConfiguration.ExpirationPolicyConfigurer
- Enclosing class:
- ExpirationConfiguration
protected static class ExpirationConfiguration.ComposableExpirationPolicyConfigurer
extends Object
implements ExpirationConfiguration.ExpirationPolicyConfigurer
ExpirationConfiguration.ComposableExpirationPolicyConfigurer
is a ExpirationConfiguration.ExpirationPolicyConfigurer
implementation
that additionally implements the Composition Software Design Pattern to treat a collection of
ExpirationConfiguration.ExpirationPolicyConfigurer
objects as a single instace of the ExpirationConfiguration.ExpirationPolicyConfigurer
.-
Method Summary
Modifier and TypeMethodDescriptionprotected static ExpirationConfiguration.ExpirationPolicyConfigurer
Factory method to compose anIterable
ofExpirationConfiguration.ExpirationPolicyConfigurer
objects.protected static ExpirationConfiguration.ExpirationPolicyConfigurer
Factory method to compose an array ofExpirationConfiguration.ExpirationPolicyConfigurer
objects.protected static ExpirationConfiguration.ExpirationPolicyConfigurer
compose
(ExpirationConfiguration.ExpirationPolicyConfigurer one, ExpirationConfiguration.ExpirationPolicyConfigurer two) Factory method to compose 2ExpirationConfiguration.ExpirationPolicyConfigurer
objects.Configures the expiration policy for the givenRegion
.org.apache.geode.cache.Region<?,
?> configure
(org.apache.geode.cache.Region<?, ?> region) Configures the expiration policy for the givenRegion
.
-
Method Details
-
compose
protected static ExpirationConfiguration.ExpirationPolicyConfigurer compose(ExpirationConfiguration.ExpirationPolicyConfigurer[] array) Factory method to compose an array ofExpirationConfiguration.ExpirationPolicyConfigurer
objects.- Parameters:
array
- array ofExpirationConfiguration.ComposableExpirationPolicyConfigurer
objects to compose.- Returns:
- a composition containing all the
ExpirationConfiguration.ExpirationPolicyConfigurer
objects in the array. - See Also:
-
compose
protected static ExpirationConfiguration.ExpirationPolicyConfigurer compose(Iterable<ExpirationConfiguration.ExpirationPolicyConfigurer> iterable) Factory method to compose anIterable
ofExpirationConfiguration.ExpirationPolicyConfigurer
objects.- Parameters:
iterable
-Iterable
ofExpirationConfiguration.ComposableExpirationPolicyConfigurer
objects to compose.- Returns:
- a composition containing all the
ExpirationConfiguration.ExpirationPolicyConfigurer
objects in theIterable
. - See Also:
-
compose
protected static ExpirationConfiguration.ExpirationPolicyConfigurer compose(ExpirationConfiguration.ExpirationPolicyConfigurer one, ExpirationConfiguration.ExpirationPolicyConfigurer two) Factory method to compose 2ExpirationConfiguration.ExpirationPolicyConfigurer
objects.- Parameters:
one
- firstExpirationConfiguration.ComposableExpirationPolicyConfigurer
to compose.two
- secondExpirationConfiguration.ComposableExpirationPolicyConfigurer
to compose.- Returns:
- a composition of the 2
ExpirationConfiguration.ExpirationPolicyConfigurer
objects. Returnsone
iftwo
is null ortwo
ifone
is null. - See Also:
-
configure
Description copied from interface:ExpirationConfiguration.ExpirationPolicyConfigurer
Configures the expiration policy for the givenRegion
.- Specified by:
configure
in interfaceExpirationConfiguration.ExpirationPolicyConfigurer
- Parameters:
regionBean
-Region
object who's expiration policy will be configured.- Returns:
- the given
Region
object. - See Also:
-
Region
-
configure
public org.apache.geode.cache.Region<?,?> configure(org.apache.geode.cache.Region<?, ?> region) Description copied from interface:ExpirationConfiguration.ExpirationPolicyConfigurer
Configures the expiration policy for the givenRegion
.- Specified by:
configure
in interfaceExpirationConfiguration.ExpirationPolicyConfigurer
- Parameters:
region
-Region
who's expiration policy will be configured.- Returns:
- the given
Region
. - See Also:
-
Region
-