Package | Description |
---|---|
javax.cache |
This package contains the API for JCache.
|
Modifier and Type | Class and Description |
---|---|
static class |
Factories.ClassFactory<T>
A
Factory that instantiates a specific Class. |
static class |
Factories.SingletonFactory<T>
A
Factory that always returns a specific instance. |
Modifier and Type | Field and 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<? super K,? super V>> |
MutableConfiguration.expiryPolicyFactory
The
Factory for the ExpiryPolicy . |
Modifier and Type | Method and Description |
---|---|
Factory<CacheLoader<K,V>> |
MutableConfiguration.getCacheLoaderFactory()
Gets the
Factory for the CacheLoader , if any. |
Factory<CacheLoader<K,V>> |
Configuration.getCacheLoaderFactory()
Gets the
Factory for the CacheLoader , if any. |
Factory<CacheWriter<? super K,? super V>> |
MutableConfiguration.getCacheWriterFactory()
Gets the
Factory for the CacheWriter , if any. |
Factory<CacheWriter<? super K,? super V>> |
Configuration.getCacheWriterFactory()
Gets the
Factory for the CacheWriter , if any. |
Factory<ExpiryPolicy<? super K,? super V>> |
MutableConfiguration.getExpiryPolicyFactory()
Gets the
Factory for the ExpiryPolicy to be used for caches. |
Factory<ExpiryPolicy<? super K,? super V>> |
Configuration.getExpiryPolicyFactory()
Gets the
Factory for the ExpiryPolicy to be used for caches. |
static <K,V> Factory<ExpiryPolicy<? super K,? super V>> |
ExpiryPolicy.Default.getFactory()
Obtains a
Factory for a Default ExpiryPolicy . |
static <T> Factory<T> |
Factories.of(Class<T> clazz)
Constructs a
Factory that will produce instances of the
specified class. |
static <T> Factory<T> |
Factories.of(T instance)
Constructs a
Factory that will return the specified instance. |
Modifier and Type | Method and Description |
---|---|
MutableConfiguration<K,V> |
MutableConfiguration.setCacheLoaderFactory(Factory<? extends CacheLoader<K,V>> factory)
Set the
CacheLoader . |
MutableConfiguration<K,V> |
MutableConfiguration.setCacheWriterFactory(Factory<? extends CacheWriter<? super K,? super V>> factory)
Set the
CacheWriter . |
MutableConfiguration<K,V> |
MutableConfiguration.setExpiryPolicyFactory(Factory<? extends ExpiryPolicy<? super K,? super V>> factory)
Set the
Factory for the ExpiryPolicy . |
Constructor and Description |
---|
MutableConfiguration(Iterable<CacheEntryListenerRegistration<? super K,? super V>> cacheEntryListenerRegistrations,
Factory<CacheLoader<K,V>> cacheLoaderFactory,
Factory<CacheWriter<? super K,? super V>> cacheWriterFactory,
Factory<ExpiryPolicy<? super K,? super V>> expiryPolicyFactory,
boolean isReadThrough,
boolean isWriteThrough,
boolean isStatisticsEnabled,
boolean isStoreByValue,
boolean isTransactionsEnabled,
IsolationLevel txnIsolationLevel,
Mode txnMode)
Constructs a
MutableConfiguration based on a set of parameters. |
MutableConfiguration(Iterable<CacheEntryListenerRegistration<? super K,? super V>> cacheEntryListenerRegistrations,
Factory<CacheLoader<K,V>> cacheLoaderFactory,
Factory<CacheWriter<? super K,? super V>> cacheWriterFactory,
Factory<ExpiryPolicy<? super K,? super V>> expiryPolicyFactory,
boolean isReadThrough,
boolean isWriteThrough,
boolean isStatisticsEnabled,
boolean isStoreByValue,
boolean isTransactionsEnabled,
IsolationLevel txnIsolationLevel,
Mode txnMode)
Constructs a
MutableConfiguration based on a set of parameters. |
MutableConfiguration(Iterable<CacheEntryListenerRegistration<? super K,? super V>> cacheEntryListenerRegistrations,
Factory<CacheLoader<K,V>> cacheLoaderFactory,
Factory<CacheWriter<? super K,? super V>> cacheWriterFactory,
Factory<ExpiryPolicy<? super K,? super V>> expiryPolicyFactory,
boolean isReadThrough,
boolean isWriteThrough,
boolean isStatisticsEnabled,
boolean isStoreByValue,
boolean isTransactionsEnabled,
IsolationLevel txnIsolationLevel,
Mode txnMode)
Constructs a
MutableConfiguration based on a set of parameters. |
Copyright © 2013. All Rights Reserved.