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> |
MutableConfiguration.expiryPolicyFactory
The
Factory for the ExpiryPolicy . |
Modifier and Type | Method and Description |
---|---|
Factory<ExpiryPolicy> |
MutableConfiguration.getExpiryPolicyFactory()
Gets the
Factory for the
ExpiryPolicy to be used for caches. |
Factory<ExpiryPolicy> |
CompleteConfiguration.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> factory)
Set the
Factory for the ExpiryPolicy . |
Modifier and Type | Class and Description |
---|---|
class |
AccessedExpiryPolicy
An
ExpiryPolicy that defines the expiry Duration
of a Cache Entry based on the last time it was accessed. |
class |
CreatedExpiryPolicy
An
ExpiryPolicy that defines the expiry Duration
of a Cache Entry based on when it was created. |
class |
EternalExpiryPolicy
An eternal
ExpiryPolicy specifies that Cache Entries
won't expire. |
class |
ModifiedExpiryPolicy
An
ExpiryPolicy that defines the expiry Duration
of a Cache Entry based on the last time it was updated. |
class |
TouchedExpiryPolicy
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 Factory<ExpiryPolicy> |
EternalExpiryPolicy.factoryOf()
Obtains a
Factory for an Eternal ExpiryPolicy . |
static Factory<ExpiryPolicy> |
TouchedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Touched ExpiryPolicy . |
static Factory<ExpiryPolicy> |
ModifiedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Modified ExpiryPolicy . |
static Factory<ExpiryPolicy> |
CreatedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Created ExpiryPolicy . |
static Factory<ExpiryPolicy> |
AccessedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for an Accessed ExpiryPolicy . |
Copyright © 2014. All Rights Reserved.