Uses of Interface
javax.cache.expiry.ExpiryPolicy
-
Packages that use ExpiryPolicy Package Description javax.cache.configuration This package contains configuration classes and interfaces.javax.cache.expiry This package contains expiry policies -
-
Uses of ExpiryPolicy in javax.cache.configuration
Fields in javax.cache.configuration with type parameters of type ExpiryPolicy Modifier and Type Field Description protected Factory<ExpiryPolicy>
MutableConfiguration. expiryPolicyFactory
TheFactory
for theExpiryPolicy
.Methods in javax.cache.configuration that return types with arguments of type ExpiryPolicy Modifier and Type Method Description Factory<ExpiryPolicy>
CompleteConfiguration. getExpiryPolicyFactory()
Gets theFactory
for theExpiryPolicy
to be used for caches.Factory<ExpiryPolicy>
MutableConfiguration. getExpiryPolicyFactory()
Gets theFactory
for theExpiryPolicy
to be used for caches.Method parameters in javax.cache.configuration with type arguments of type ExpiryPolicy Modifier and Type Method Description MutableConfiguration<K,V>
MutableConfiguration. setExpiryPolicyFactory(Factory<? extends ExpiryPolicy> factory)
Set theFactory
for theExpiryPolicy
. -
Uses of ExpiryPolicy in javax.cache.expiry
Classes in javax.cache.expiry that implement ExpiryPolicy Modifier and Type Class Description class
AccessedExpiryPolicy
AnExpiryPolicy
that defines the expiryDuration
of a Cache Entry based on the last time it was accessed.class
CreatedExpiryPolicy
AnExpiryPolicy
that defines the expiryDuration
of a Cache Entry based on when it was created.class
EternalExpiryPolicy
An eternalExpiryPolicy
specifies that Cache Entries won't expire.class
ModifiedExpiryPolicy
AnExpiryPolicy
that defines the expiryDuration
of a Cache Entry based on the last time it was updated.class
TouchedExpiryPolicy
AnExpiryPolicy
that defines the expiryDuration
of a Cache Entry based on when it was last touched.Methods in javax.cache.expiry that return types with arguments of type ExpiryPolicy Modifier and Type Method Description static Factory<ExpiryPolicy>
AccessedExpiryPolicy. factoryOf(Duration duration)
Obtains aFactory
for an AccessedExpiryPolicy
.static Factory<ExpiryPolicy>
CreatedExpiryPolicy. factoryOf(Duration duration)
Obtains aFactory
for a CreatedExpiryPolicy
.static Factory<ExpiryPolicy>
EternalExpiryPolicy. factoryOf()
Obtains aFactory
for an EternalExpiryPolicy
.static Factory<ExpiryPolicy>
ModifiedExpiryPolicy. factoryOf(Duration duration)
Obtains aFactory
for a ModifiedExpiryPolicy
.static Factory<ExpiryPolicy>
TouchedExpiryPolicy. factoryOf(Duration duration)
Obtains aFactory
for a TouchedExpiryPolicy
.
-