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
.Modifier and Type | Method and Description |
---|---|
protected static ExpirationConfiguration.ExpirationPolicyConfigurer |
compose(ExpirationConfiguration.ExpirationPolicyConfigurer[] array)
Factory method to compose an array of
ExpirationConfiguration.ExpirationPolicyConfigurer objects. |
protected static ExpirationConfiguration.ExpirationPolicyConfigurer |
compose(ExpirationConfiguration.ExpirationPolicyConfigurer one,
ExpirationConfiguration.ExpirationPolicyConfigurer two)
Factory method to compose 2
ExpirationConfiguration.ExpirationPolicyConfigurer objects. |
protected static ExpirationConfiguration.ExpirationPolicyConfigurer |
compose(Iterable<ExpirationConfiguration.ExpirationPolicyConfigurer> iterable)
Factory method to compose an
Iterable of ExpirationConfiguration.ExpirationPolicyConfigurer objects. |
Object |
configure(Object regionFactoryBean)
Configures the expiration policy for the given
Region . |
protected static ExpirationConfiguration.ExpirationPolicyConfigurer compose(ExpirationConfiguration.ExpirationPolicyConfigurer[] array)
ExpirationConfiguration.ExpirationPolicyConfigurer
objects.array
- array of ExpirationConfiguration.ComposableExpirationPolicyConfigurer
objects to compose.ExpirationConfiguration.ExpirationPolicyConfigurer
objects in the array.ExpirationConfiguration.ExpirationPolicyConfigurer
,
compose(Iterable)
protected static ExpirationConfiguration.ExpirationPolicyConfigurer compose(Iterable<ExpirationConfiguration.ExpirationPolicyConfigurer> iterable)
Iterable
of ExpirationConfiguration.ExpirationPolicyConfigurer
objects.iterable
- Iterable
of ExpirationConfiguration.ComposableExpirationPolicyConfigurer
objects to compose.ExpirationConfiguration.ExpirationPolicyConfigurer
objects in the Iterable
.ExpirationConfiguration.ExpirationPolicyConfigurer
,
#compose(ExpirationPolicyConfigurer, ExpirationPolicyConfigurer)
protected static ExpirationConfiguration.ExpirationPolicyConfigurer compose(ExpirationConfiguration.ExpirationPolicyConfigurer one, ExpirationConfiguration.ExpirationPolicyConfigurer two)
ExpirationConfiguration.ExpirationPolicyConfigurer
objects.one
- first ExpirationConfiguration.ComposableExpirationPolicyConfigurer
to compose.two
- second ExpirationConfiguration.ComposableExpirationPolicyConfigurer
to compose.ExpirationConfiguration.ExpirationPolicyConfigurer
objects.
Returns one
if two
is null or two
if one
is null.ExpirationConfiguration.ExpirationPolicyConfigurer
public Object configure(Object regionFactoryBean)
ExpirationConfiguration.ExpirationPolicyConfigurer
Region
.configure
in interface ExpirationConfiguration.ExpirationPolicyConfigurer
regionFactoryBean
- Region
object who's expiration policy will be configured.Region
object.Region
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.