Uses of Class
javax.cache.expiry.Duration
Packages that use Duration
-
Uses of Duration in javax.cache.expiry
Fields in javax.cache.expiry declared as DurationModifier and TypeFieldDescriptionstatic final Duration
Duration.ETERNAL
ETERNAL (forever).private Duration
AccessedExpiryPolicy.expiryDuration
TheDuration
a Cache Entry should be available before it expires.private Duration
CreatedExpiryPolicy.expiryDuration
TheDuration
a Cache Entry should be available before it expires.private Duration
ModifiedExpiryPolicy.expiryDuration
TheDuration
a Cache Entry should be available before it expires.private Duration
TouchedExpiryPolicy.expiryDuration
TheDuration
a Cache Entry should be available before it expires.static final Duration
Duration.FIVE_MINUTES
Five minutes.static final Duration
Duration.ONE_DAY
One day.static final Duration
Duration.ONE_HOUR
One hour.static final Duration
Duration.ONE_MINUTE
One minute.static final Duration
Duration.TEN_MINUTES
Ten minutes.static final Duration
Duration.THIRTY_MINUTES
Thirty minutes.static final Duration
Duration.TWENTY_MINUTES
Twenty minutes.static final Duration
Duration.ZERO
Zero (no time).Methods in javax.cache.expiry that return DurationModifier and TypeMethodDescriptionAccessedExpiryPolicy.getExpiryForAccess()
Gets theDuration
before an accessed Cache.Entry is considered expired.CreatedExpiryPolicy.getExpiryForAccess()
Gets theDuration
before an accessed Cache.Entry is considered expired.EternalExpiryPolicy.getExpiryForAccess()
Gets theDuration
before an accessed Cache.Entry is considered expired.ExpiryPolicy.getExpiryForAccess()
Gets theDuration
before an accessed Cache.Entry is considered expired.ModifiedExpiryPolicy.getExpiryForAccess()
Gets theDuration
before an accessed Cache.Entry is considered expired.TouchedExpiryPolicy.getExpiryForAccess()
Gets theDuration
before an accessed Cache.Entry is considered expired.AccessedExpiryPolicy.getExpiryForCreation()
Gets theDuration
before a newly created Cache.Entry is considered expired.CreatedExpiryPolicy.getExpiryForCreation()
Gets theDuration
before a newly created Cache.Entry is considered expired.EternalExpiryPolicy.getExpiryForCreation()
Gets theDuration
before a newly created Cache.Entry is considered expired.ExpiryPolicy.getExpiryForCreation()
Gets theDuration
before a newly created Cache.Entry is considered expired.ModifiedExpiryPolicy.getExpiryForCreation()
Gets theDuration
before a newly created Cache.Entry is considered expired.TouchedExpiryPolicy.getExpiryForCreation()
Gets theDuration
before a newly created Cache.Entry is considered expired.AccessedExpiryPolicy.getExpiryForUpdate()
Gets theDuration
before an updated Cache.Entry is considered expired.CreatedExpiryPolicy.getExpiryForUpdate()
Gets theDuration
before an updated Cache.Entry is considered expired.EternalExpiryPolicy.getExpiryForUpdate()
Gets theDuration
before an updated Cache.Entry is considered expired.ExpiryPolicy.getExpiryForUpdate()
Gets theDuration
before an updated Cache.Entry is considered expired.ModifiedExpiryPolicy.getExpiryForUpdate()
Gets theDuration
before an updated Cache.Entry is considered expired.TouchedExpiryPolicy.getExpiryForUpdate()
Gets theDuration
before an updated Cache.Entry is considered expired.Methods in javax.cache.expiry with parameters of type DurationModifier and TypeMethodDescriptionstatic Factory
<ExpiryPolicy> Obtains aFactory
for an AccessedExpiryPolicy
.static Factory
<ExpiryPolicy> Obtains aFactory
for a CreatedExpiryPolicy
.static Factory
<ExpiryPolicy> Obtains aFactory
for a ModifiedExpiryPolicy
.static Factory
<ExpiryPolicy> Obtains aFactory
for a TouchedExpiryPolicy
.Constructors in javax.cache.expiry with parameters of type DurationModifierConstructorDescriptionAccessedExpiryPolicy
(Duration expiryDuration) Constructs anAccessedExpiryPolicy
ExpiryPolicy
.CreatedExpiryPolicy
(Duration expiryDuration) Constructs anCreatedExpiryPolicy
ExpiryPolicy
.ModifiedExpiryPolicy
(Duration expiryDuration) Constructs anModifiedExpiryPolicy
ExpiryPolicy
.TouchedExpiryPolicy
(Duration expiryDuration) Constructs anTouchedExpiryPolicy
ExpiryPolicy
.