Package | Description |
---|---|
javax.cache.configuration |
This package contains configuration classes and interfaces.
|
javax.cache.expiry |
This package contains expiry policies
|
Modifier and Type | Field and Description |
---|---|
protected Factory<ExpiryPolicy<? super K,? super V>> |
MutableConfiguration.expiryPolicyFactory
The
Factory for the ExpiryPolicy . |
Modifier and Type | Method and Description |
---|---|
Factory<ExpiryPolicy<? super K,? super V>> |
MutableConfiguration.getExpiryPolicyFactory()
Gets the
Factory for the ExpiryPolicy to be used for caches. |
Factory<ExpiryPolicy<? super K,? super V>> |
Configuration.getExpiryPolicyFactory()
Gets the
Factory for the ExpiryPolicy to be used for caches. |
Modifier and Type | Method and Description |
---|---|
MutableConfiguration<K,V> |
MutableConfiguration.setExpiryPolicyFactory(Factory<? extends ExpiryPolicy<? super K,? super V>> factory)
Set the
Factory for the ExpiryPolicy . |
Modifier and Type | Class and Description |
---|---|
class |
AccessedExpiryPolicy<K,V>
An
ExpiryPolicy that defines the expiry Duration
of a Cache Entry based on the last time it was accessed. |
class |
CreatedExpiryPolicy<K,V>
An
ExpiryPolicy that defines the expiry Duration
of a Cache Entry based on when it was created. |
class |
EternalExpiryPolicy<K,V>
The eternal
ExpiryPolicy specifies that Cache Entries
won't expire. |
class |
ModifiedExpiryPolicy<K,V>
An
ExpiryPolicy that defines the expiry Duration
of a Cache Entry based on the last time it was modified. |
class |
TouchedExpiryPolicy<K,V>
An
ExpiryPolicy that defines the expiry Duration
of a Cache Entry based on when it was last touched. |
Modifier and Type | Method and Description |
---|---|
static <K,V> Factory<ExpiryPolicy<? super K,? super V>> |
EternalExpiryPolicy.factoryOf()
Obtains a
Factory for an Eternal ExpiryPolicy . |
static <K,V> Factory<ExpiryPolicy<? super K,? super V>> |
TouchedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Touched ExpiryPolicy . |
static <K,V> Factory<ExpiryPolicy<? super K,? super V>> |
ModifiedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Modified ExpiryPolicy . |
static <K,V> Factory<ExpiryPolicy<? super K,? super V>> |
CreatedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Created ExpiryPolicy . |
static <K,V> Factory<ExpiryPolicy<? super K,? super V>> |
AccessedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for an Accessed ExpiryPolicy . |
Copyright © 2013. All Rights Reserved.