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 |
---|---|
Duration |
TouchedExpiryPolicy.getExpiryForAccessedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the accessed Cache.Entry is considered expired.
|
Duration |
ModifiedExpiryPolicy.getExpiryForAccessedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the accessed Cache.Entry is considered expired.
|
Duration |
ExpiryPolicy.getExpiryForAccessedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the accessed Cache.Entry is considered expired.
|
Duration |
EternalExpiryPolicy.getExpiryForAccessedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the accessed Cache.Entry is considered expired.
|
Duration |
CreatedExpiryPolicy.getExpiryForAccessedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the accessed Cache.Entry is considered expired.
|
Duration |
AccessedExpiryPolicy.getExpiryForAccessedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the accessed Cache.Entry is considered expired.
|
Duration |
TouchedExpiryPolicy.getExpiryForCreatedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the newly Cache.Entry is considered expired.
|
Duration |
ModifiedExpiryPolicy.getExpiryForCreatedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the newly Cache.Entry is considered expired.
|
Duration |
ExpiryPolicy.getExpiryForCreatedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the newly Cache.Entry is considered expired.
|
Duration |
EternalExpiryPolicy.getExpiryForCreatedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the newly Cache.Entry is considered expired.
|
Duration |
CreatedExpiryPolicy.getExpiryForCreatedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the newly Cache.Entry is considered expired.
|
Duration |
AccessedExpiryPolicy.getExpiryForCreatedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the newly Cache.Entry is considered expired.
|
Duration |
TouchedExpiryPolicy.getExpiryForModifiedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the modified Cache.Entry is considered expired.
|
Duration |
ModifiedExpiryPolicy.getExpiryForModifiedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the modified Cache.Entry is considered expired.
|
Duration |
ExpiryPolicy.getExpiryForModifiedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the modified Cache.Entry is considered expired.
|
Duration |
EternalExpiryPolicy.getExpiryForModifiedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the modified Cache.Entry is considered expired.
|
Duration |
CreatedExpiryPolicy.getExpiryForModifiedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the modified Cache.Entry is considered expired.
|
Duration |
AccessedExpiryPolicy.getExpiryForModifiedEntry(Cache.Entry<? extends K,? extends V> entry)
Gets the duration before the modified Cache.Entry is considered expired.
|
Modifier and Type | Method and Description |
---|---|
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 . |
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.