Package | Description |
---|---|
javax.cache.expiry |
This package contains expiry policies
|
Modifier and Type | Field and Description |
---|---|
static Duration |
Duration.ETERNAL
ETERNAL (forever).
|
static Duration |
Duration.FIVE_MINUTES
Five minutes.
|
static Duration |
Duration.ONE_DAY
One day.
|
static Duration |
Duration.ONE_HOUR
One hour.
|
static Duration |
Duration.ONE_MINUTE
One minute.
|
static Duration |
Duration.TEN_MINUTES
Ten minutes.
|
static Duration |
Duration.THIRTY_MINUTES
Thirty minutes.
|
static Duration |
Duration.TWENTY_MINUTES
Twenty minutes.
|
static Duration |
Duration.ZERO
Zero (no time).
|
Modifier and Type | Method and Description |
---|---|
<L extends K> |
TouchedExpiryPolicy.getExpiryForAccessedEntry(L key)
Gets the duration before the accessed Cache.Entry is considered expired.
|
<L extends K> |
ModifiedExpiryPolicy.getExpiryForAccessedEntry(L key)
Gets the duration before the accessed Cache.Entry is considered expired.
|
<L extends K> |
ExpiryPolicy.getExpiryForAccessedEntry(L key)
Gets the duration before the accessed Cache.Entry is considered expired.
|
<L extends K> |
EternalExpiryPolicy.getExpiryForAccessedEntry(L key)
Gets the duration before the accessed Cache.Entry is considered expired.
|
<L extends K> |
CreatedExpiryPolicy.getExpiryForAccessedEntry(L key)
Gets the duration before the accessed Cache.Entry is considered expired.
|
<L extends K> |
AccessedExpiryPolicy.getExpiryForAccessedEntry(L key)
Gets the duration before the accessed Cache.Entry is considered expired.
|
<L extends K> |
TouchedExpiryPolicy.getExpiryForCreatedEntry(L key)
Gets the duration before the newly Cache.Entry is considered expired.
|
<L extends K> |
ModifiedExpiryPolicy.getExpiryForCreatedEntry(L key)
Gets the duration before the newly Cache.Entry is considered expired.
|
<L extends K> |
ExpiryPolicy.getExpiryForCreatedEntry(L key)
Gets the duration before the newly Cache.Entry is considered expired.
|
<L extends K> |
EternalExpiryPolicy.getExpiryForCreatedEntry(L key)
Gets the duration before the newly Cache.Entry is considered expired.
|
<L extends K> |
CreatedExpiryPolicy.getExpiryForCreatedEntry(L key)
Gets the duration before the newly Cache.Entry is considered expired.
|
<L extends K> |
AccessedExpiryPolicy.getExpiryForCreatedEntry(L key)
Gets the duration before the newly Cache.Entry is considered expired.
|
<L extends K> |
TouchedExpiryPolicy.getExpiryForModifiedEntry(L key)
Gets the duration before the modified Cache.Entry is considered expired.
|
<L extends K> |
ModifiedExpiryPolicy.getExpiryForModifiedEntry(L key)
Gets the duration before the modified Cache.Entry is considered expired.
|
<L extends K> |
ExpiryPolicy.getExpiryForModifiedEntry(L key)
Gets the duration before the modified Cache.Entry is considered expired.
|
<L extends K> |
EternalExpiryPolicy.getExpiryForModifiedEntry(L key)
Gets the duration before the modified Cache.Entry is considered expired.
|
<L extends K> |
CreatedExpiryPolicy.getExpiryForModifiedEntry(L key)
Gets the duration before the modified Cache.Entry is considered expired.
|
<L extends K> |
AccessedExpiryPolicy.getExpiryForModifiedEntry(L key)
Gets the duration before the modified Cache.Entry is considered expired.
|
Modifier and Type | Method and Description |
---|---|
static <K> Factory<ExpiryPolicy<? super K>> |
AccessedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for an Accessed ExpiryPolicy . |
static <K,V> Factory<ExpiryPolicy<? super K>> |
TouchedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Touched ExpiryPolicy . |
static <K,V> Factory<ExpiryPolicy<? super K>> |
ModifiedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Modified ExpiryPolicy . |
static <K,V> Factory<ExpiryPolicy<? super K>> |
CreatedExpiryPolicy.factoryOf(Duration duration)
Obtains a
Factory for a Created ExpiryPolicy . |
Constructor and Description |
---|
AccessedExpiryPolicy(Duration expiryDuration)
Constructs an
AccessedExpiryPolicy ExpiryPolicy . |
CreatedExpiryPolicy(Duration expiryDuration)
Constructs an
CreatedExpiryPolicy ExpiryPolicy . |
ModifiedExpiryPolicy(Duration expiryDuration)
Constructs an
ModifiedExpiryPolicy ExpiryPolicy . |
TouchedExpiryPolicy(Duration expiryDuration)
Constructs an
TouchedExpiryPolicy ExpiryPolicy . |
Copyright © 2013. All Rights Reserved.