Package | Description |
---|---|
javax.cache.configuration |
This package contains configuration classes and interfaces.
|
javax.cache.expiry |
This package contains expiry policies
|
Modifier and Type | Class | Description |
---|---|---|
static class |
FactoryBuilder.ClassFactory<T> |
A
Factory that instantiates a specific Class. |
static class |
FactoryBuilder.SingletonFactory<T> |
A
Factory that always returns a specific instance. |
Modifier and Type | Field | Description |
---|---|---|
protected Factory<CacheLoader<K,V>> |
MutableConfiguration.cacheLoaderFactory |
The
Factory for the CacheLoader . |
protected Factory<CacheWriter<? super K,? super V>> |
MutableConfiguration.cacheWriterFactory |
The
Factory for the CacheWriter . |
protected Factory<ExpiryPolicy> |
MutableConfiguration.expiryPolicyFactory |
The
Factory for the ExpiryPolicy . |
Modifier and Type | Method | Description |
---|---|---|
static <T> Factory<T> |
FactoryBuilder.factoryOf(Class<T> clazz) |
Constructs a
Factory that will produce factory instances of the
specified class. |
static <T> Factory<T> |
FactoryBuilder.factoryOf(String className) |
Constructs a
Factory that will produce factory instances of the
specified class. |
static <T extends Serializable> |
FactoryBuilder.factoryOf(T instance) |
Constructs a
Factory that will return the specified factory
Serializable instance. |
Factory<CacheEntryEventFilter<? super K,? super V>> |
CacheEntryListenerConfiguration.getCacheEntryEventFilterFactory() |
Obtains the
Factory for the CacheEntryEventFilter that should be
applied prior to notifying the CacheEntryListener . |
Factory<CacheEntryEventFilter<? super K,? super V>> |
MutableCacheEntryListenerConfiguration.getCacheEntryEventFilterFactory() |
Obtains the
Factory for the CacheEntryEventFilter that should be
applied prior to notifying the CacheEntryListener . |
Factory<CacheEntryListener<? super K,? super V>> |
CacheEntryListenerConfiguration.getCacheEntryListenerFactory() |
Obtains the
Factory for the
CacheEntryListener . |
Factory<CacheEntryListener<? super K,? super V>> |
MutableCacheEntryListenerConfiguration.getCacheEntryListenerFactory() |
Obtains the
Factory for the
CacheEntryListener . |
Factory<CacheLoader<K,V>> |
CompleteConfiguration.getCacheLoaderFactory() |
Gets the
Factory for the
CacheLoader , if any. |
Factory<CacheLoader<K,V>> |
MutableConfiguration.getCacheLoaderFactory() |
Gets the
Factory for the
CacheLoader , if any. |
Factory<CacheWriter<? super K,? super V>> |
CompleteConfiguration.getCacheWriterFactory() |
Gets the
Factory for the
CacheWriter , if any. |
Factory<CacheWriter<? super K,? super V>> |
MutableConfiguration.getCacheWriterFactory() |
Gets the
Factory for the
CacheWriter , if any. |
Factory<ExpiryPolicy> |
CompleteConfiguration.getExpiryPolicyFactory() |
Gets the
Factory for the
ExpiryPolicy to be used for caches. |
Factory<ExpiryPolicy> |
MutableConfiguration.getExpiryPolicyFactory() |
Gets the
Factory for the
ExpiryPolicy to be used for caches. |
Modifier and Type | Method | Description |
---|---|---|
MutableCacheEntryListenerConfiguration<K,V> |
MutableCacheEntryListenerConfiguration.setCacheEntryEventFilterFactory(Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory) |
Sets the
Factory to be used to create a CacheEntryEventFilter . |
MutableCacheEntryListenerConfiguration<K,V> |
MutableCacheEntryListenerConfiguration.setCacheEntryListenerFactory(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory) |
Sets the
Factory to be used to create a CacheEntryListener . |
MutableConfiguration<K,V> |
MutableConfiguration.setCacheLoaderFactory(Factory<? extends CacheLoader<K,V>> factory) |
Set the
CacheLoader factory. |
MutableConfiguration<K,V> |
MutableConfiguration.setCacheWriterFactory(Factory<? extends CacheWriter<? super K,? super V>> factory) |
Set the
CacheWriter factory. |
MutableConfiguration<K,V> |
MutableConfiguration.setExpiryPolicyFactory(Factory<? extends ExpiryPolicy> factory) |
Set the
Factory for the ExpiryPolicy . |
Constructor | Description |
---|---|
MutableCacheEntryListenerConfiguration(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory,
Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory,
boolean isOldValueRequired,
boolean isSynchronous) |
Constructs a
MutableCacheEntryListenerConfiguration . |
Modifier and Type | Method | Description |
---|---|---|
static Factory<ExpiryPolicy> |
AccessedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for an Accessed ExpiryPolicy . |
static Factory<ExpiryPolicy> |
CreatedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Created ExpiryPolicy . |
static Factory<ExpiryPolicy> |
EternalExpiryPolicy.factoryOf() |
Obtains a
Factory for an Eternal ExpiryPolicy . |
static Factory<ExpiryPolicy> |
ModifiedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Modified ExpiryPolicy . |
static Factory<ExpiryPolicy> |
TouchedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Touched ExpiryPolicy . |
Copyright © 2017. All rights reserved.