Package | Description |
---|---|
javax.cache.configuration |
This package contains configuration classes and interfaces.
|
javax.cache.expiry |
This package contains expiry policies
|
Modifier and Type | Field | Description |
---|---|---|
protected Factory<ExpiryPolicy> |
MutableConfiguration.expiryPolicyFactory |
The
Factory for the ExpiryPolicy . |
Modifier and Type | Method | Description |
---|---|---|
Factory<ExpiryPolicy> |
CompleteConfiguration.getExpiryPolicyFactory() |
Gets the
Factory for the
ExpiryPolicy to be used for caches. |
Factory<ExpiryPolicy> |
MutableConfiguration.getExpiryPolicyFactory() |
Gets the
Factory for the
ExpiryPolicy to be used for caches. |
Modifier and Type | Method | Description |
---|---|---|
MutableConfiguration<K,V> |
MutableConfiguration.setExpiryPolicyFactory(Factory<? extends ExpiryPolicy> factory) |
Set the
Factory for the ExpiryPolicy . |
Modifier and Type | Class | 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 | Description |
---|---|---|
static Factory<ExpiryPolicy> |
AccessedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for an Accessed ExpiryPolicy . |
static Factory<ExpiryPolicy> |
CreatedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Created ExpiryPolicy . |
static Factory<ExpiryPolicy> |
EternalExpiryPolicy.factoryOf() |
Obtains a
Factory for an Eternal ExpiryPolicy . |
static Factory<ExpiryPolicy> |
ModifiedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Modified ExpiryPolicy . |
static Factory<ExpiryPolicy> |
TouchedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Touched ExpiryPolicy . |
Copyright © 2017. All rights reserved.