Package | Description |
---|---|
javax.cache |
This package contains the API for JCache.
|
Modifier and Type | Class and Description |
---|---|
static class |
ExpiryPolicy.Accessed<K,V>
A
ExpiryPolicy that defines the expiry Configuration.Duration
of a Cache Entry based on the last time it was accessed. |
static class |
ExpiryPolicy.Default<K,V>
The default
ExpiryPolicy specifies that Cache Entries
won't expire. |
static class |
ExpiryPolicy.Modified<K,V>
A
ExpiryPolicy that defines the expiry Configuration.Duration
of a Cache Entry based on the last time it was modified. |
Modifier and Type | Field and Description |
---|---|
protected Factory<ExpiryPolicy<? super K,? super V>> |
MutableConfiguration.expiryPolicyFactory
The
Factory for the ExpiryPolicy . |
Modifier and Type | Method and Description |
---|---|
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 . |
Modifier and Type | Method and Description |
---|---|
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. |
Copyright © 2013. All Rights Reserved.