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. expiryPolicyFactoryTheFactoryfor theExpiryPolicy.Methods in javax.cache.configuration that return types with arguments of type ExpiryPolicy Modifier and Type Method Description Factory<ExpiryPolicy>CompleteConfiguration. getExpiryPolicyFactory()Gets theFactoryfor theExpiryPolicyto be used for caches.Factory<ExpiryPolicy>MutableConfiguration. getExpiryPolicyFactory()Gets theFactoryfor theExpiryPolicyto 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 theFactoryfor theExpiryPolicy. -
Uses of ExpiryPolicy in javax.cache.expiry
Classes in javax.cache.expiry that implement ExpiryPolicy Modifier and Type Class Description classAccessedExpiryPolicyAnExpiryPolicythat defines the expiryDurationof a Cache Entry based on the last time it was accessed.classCreatedExpiryPolicyAnExpiryPolicythat defines the expiryDurationof a Cache Entry based on when it was created.classEternalExpiryPolicyAn eternalExpiryPolicyspecifies that Cache Entries won't expire.classModifiedExpiryPolicyAnExpiryPolicythat defines the expiryDurationof a Cache Entry based on the last time it was updated.classTouchedExpiryPolicyAnExpiryPolicythat defines the expiryDurationof 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 aFactoryfor an AccessedExpiryPolicy.static Factory<ExpiryPolicy>CreatedExpiryPolicy. factoryOf(Duration duration)Obtains aFactoryfor a CreatedExpiryPolicy.static Factory<ExpiryPolicy>EternalExpiryPolicy. factoryOf()Obtains aFactoryfor an EternalExpiryPolicy.static Factory<ExpiryPolicy>ModifiedExpiryPolicy. factoryOf(Duration duration)Obtains aFactoryfor a ModifiedExpiryPolicy.static Factory<ExpiryPolicy>TouchedExpiryPolicy. factoryOf(Duration duration)Obtains aFactoryfor a TouchedExpiryPolicy.
-