Class LoomJCacheConfig.Builder<K,V>
java.lang.Object
com.loomcache.server.jcache.LoomJCacheConfig.Builder<K,V>
- Enclosing class:
LoomJCacheConfig<K,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> cfg) build()cacheLoaderFactory(@Nullable javax.cache.configuration.Factory<javax.cache.integration.CacheLoader<K, V>> factory) cacheWriterFactory(@Nullable javax.cache.configuration.Factory<javax.cache.integration.CacheWriter<? super K, ? super V>> factory) distributedEnabled(boolean enabled) Enable Raft-replicated backing storage.distributedRegistry(@Nullable DataStructureRegistry registry) Set the registry used to resolve the backingDistributedMapwhen distributed mode is enabled.expiryDuration(Duration duration) expiryPolicyFactory(@Nullable javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> factory) managementEnabled(boolean enabled) maxIdleTimeSeconds(int seconds) readThrough(boolean readThrough) statisticsEnabled(boolean enabled) storeByValue(boolean storeByValue) writeThrough(boolean writeThrough)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheName
-
storeByValue
-
readThrough
-
writeThrough
-
statisticsEnabled
-
managementEnabled
-
expiryPolicyType
-
expiryDuration
-
maxIdleTimeSeconds
-
keyType
-
valueType
-
expiryPolicyFactory
public LoomJCacheConfig.Builder<K,V> expiryPolicyFactory(@Nullable javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> factory) -
cacheLoaderFactory
public LoomJCacheConfig.Builder<K,V> cacheLoaderFactory(@Nullable javax.cache.configuration.Factory<javax.cache.integration.CacheLoader<K, V>> factory) -
cacheWriterFactory
public LoomJCacheConfig.Builder<K,V> cacheWriterFactory(@Nullable javax.cache.configuration.Factory<javax.cache.integration.CacheWriter<? super K, ? super V>> factory) -
addCacheEntryListenerConfiguration
public LoomJCacheConfig.Builder<K,V> addCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> cfg) -
distributedEnabled
Enable Raft-replicated backing storage. When set,LoomJCacheroutes every read/write through aDistributedMapinstead of an in-processConcurrentHashMap.Registry-backed callers should also supply
distributedRegistry(DataStructureRegistry). Protocol-backed managers may resolve distributed storage later via their cluster client. -
distributedRegistry
Set the registry used to resolve the backingDistributedMapwhen distributed mode is enabled. Anullregistry is allowed only when distributed mode is disabled. -
build
-