Uses of Interface
javax.cache.configuration.Factory
-
Packages that use Factory Package Description javax.cache.configuration This package contains configuration classes and interfaces.javax.cache.expiry This package contains expiry policies -
-
Uses of Factory in javax.cache.configuration
Classes in javax.cache.configuration that implement Factory Modifier and Type Class Description static classFactoryBuilder.ClassFactory<T>AFactorythat instantiates a specific Class.static classFactoryBuilder.SingletonFactory<T>AFactorythat always returns a specific instance.Fields in javax.cache.configuration declared as Factory Modifier and Type Field Description protected Factory<CacheLoader<K,V>>MutableConfiguration. cacheLoaderFactoryTheFactoryfor theCacheLoader.protected Factory<CacheWriter<? super K,? super V>>MutableConfiguration. cacheWriterFactoryTheFactoryfor theCacheWriter.protected Factory<ExpiryPolicy>MutableConfiguration. expiryPolicyFactoryTheFactoryfor theExpiryPolicy.private Factory<CacheEntryEventFilter<? super K,? super V>>MutableCacheEntryListenerConfiguration. filterFactoryTheFactoryto be used to create theCacheEntryEventFilter.private Factory<CacheEntryListener<? super K,? super V>>MutableCacheEntryListenerConfiguration. listenerFactoryTheFactoryto be used to create theCacheEntryListener.Methods in javax.cache.configuration that return Factory Modifier and Type Method Description static <T> Factory<T>FactoryBuilder. factoryOf(java.lang.Class<T> clazz)Constructs aFactorythat will produce factory instances of the specified class.static <T> Factory<T>FactoryBuilder. factoryOf(java.lang.String className)Constructs aFactorythat will produce factory instances of the specified class.static <T extends java.io.Serializable>
Factory<T>FactoryBuilder. factoryOf(T instance)Constructs aFactorythat will return the specified factory Serializable instance.Factory<CacheEntryEventFilter<? super K,? super V>>CacheEntryListenerConfiguration. getCacheEntryEventFilterFactory()Obtains theFactoryfor theCacheEntryEventFilterthat should be applied prior to notifying theCacheEntryListener.Factory<CacheEntryEventFilter<? super K,? super V>>MutableCacheEntryListenerConfiguration. getCacheEntryEventFilterFactory()Obtains theFactoryfor theCacheEntryEventFilterthat should be applied prior to notifying theCacheEntryListener.Factory<CacheEntryListener<? super K,? super V>>CacheEntryListenerConfiguration. getCacheEntryListenerFactory()Obtains theFactoryfor theCacheEntryListener.Factory<CacheEntryListener<? super K,? super V>>MutableCacheEntryListenerConfiguration. getCacheEntryListenerFactory()Obtains theFactoryfor theCacheEntryListener.Factory<CacheLoader<K,V>>CompleteConfiguration. getCacheLoaderFactory()Gets theFactoryfor theCacheLoader, if any.Factory<CacheLoader<K,V>>MutableConfiguration. getCacheLoaderFactory()Gets theFactoryfor theCacheLoader, if any.Factory<CacheWriter<? super K,? super V>>CompleteConfiguration. getCacheWriterFactory()Gets theFactoryfor theCacheWriter, if any.Factory<CacheWriter<? super K,? super V>>MutableConfiguration. getCacheWriterFactory()Gets theFactoryfor theCacheWriter, if any.Factory<ExpiryPolicy>CompleteConfiguration. getExpiryPolicyFactory()Gets theFactoryfor theExpiryPolicyto be used for caches.Factory<ExpiryPolicy>MutableConfiguration. getExpiryPolicyFactory()Gets theFactoryfor theExpiryPolicyto be used for caches.Methods in javax.cache.configuration with parameters of type Factory Modifier and Type Method Description MutableCacheEntryListenerConfiguration<K,V>MutableCacheEntryListenerConfiguration. setCacheEntryEventFilterFactory(Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory)Sets theFactoryto be used to create aCacheEntryEventFilter.MutableCacheEntryListenerConfiguration<K,V>MutableCacheEntryListenerConfiguration. setCacheEntryListenerFactory(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory)Sets theFactoryto be used to create aCacheEntryListener.MutableConfiguration<K,V>MutableConfiguration. setCacheLoaderFactory(Factory<? extends CacheLoader<K,V>> factory)Set theCacheLoaderfactory.MutableConfiguration<K,V>MutableConfiguration. setCacheWriterFactory(Factory<? extends CacheWriter<? super K,? super V>> factory)Set theCacheWriterfactory.MutableConfiguration<K,V>MutableConfiguration. setExpiryPolicyFactory(Factory<? extends ExpiryPolicy> factory)Set theFactoryfor theExpiryPolicy.Constructors in javax.cache.configuration with parameters of type Factory Constructor Description MutableCacheEntryListenerConfiguration(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory, Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory, boolean isOldValueRequired, boolean isSynchronous)Constructs aMutableCacheEntryListenerConfiguration. -
Uses of Factory in javax.cache.expiry
Methods in javax.cache.expiry that return Factory 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.
-