Class MicrostreamCacheConfigurationBuilder<K,V>
java.lang.Object
io.helidon.integrations.microstream.cache.MicrostreamCacheConfigurationBuilder<K,V>
- Type Parameters:
K
- type of the cache keyV
- type of the cache value
- All Implemented Interfaces:
Builder<MicrostreamCacheConfigurationBuilder<K,
,V>, one.microstream.cache.types.CacheConfiguration<K, V>> Supplier<one.microstream.cache.types.CacheConfiguration<K,
,V>> one.microstream.cache.types.CacheConfiguration.Builder<K,
,V> one.microstream.cache.types.CacheConfigurationPropertyNames
public class MicrostreamCacheConfigurationBuilder<K,V>
extends Object
implements one.microstream.cache.types.CacheConfigurationPropertyNames, one.microstream.cache.types.CacheConfiguration.Builder<K,V>, Builder<MicrostreamCacheConfigurationBuilder<K,V>,one.microstream.cache.types.CacheConfiguration<K,V>>
Builder for Microstream-CacheConfigurations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.cache.types.CacheConfiguration.Builder
one.microstream.cache.types.CacheConfiguration.Builder.Default<K,
V> -
Field Summary
Fields inherited from interface one.microstream.cache.types.CacheConfigurationPropertyNames
CACHE_LOADER_FACTORY, CACHE_WRITER_FACTORY, EVICTION_MANAGER_FACTORY, EXPIRY_POLICY_FACTORY, KEY_TYPE, MANAGEMENT_ENABLED, READ_THROUGH, STATISTICS_ENABLED, STORAGE, STORAGE_CONFIGURATION_RESOURCE_NAME, STORAGE_KEY, STORE_BY_VALUE, VALUE_TYPE, WRITE_THROUGH
-
Constructor Summary
ModifierConstructorDescriptionprotected
MicrostreamCacheConfigurationBuilder
(Class<K> keyType, Class<V> valueType) protected
MicrostreamCacheConfigurationBuilder
(one.microstream.configuration.types.Configuration configuration, Class<K> keyType, Class<V> valueType) -
Method Summary
Modifier and TypeMethodDescriptionaddListenerConfiguration
(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> listenerConfiguration) build()
Build the instance from this builder.static MicrostreamCacheConfigurationBuilder
<?, ?> creates a new MicrostreamCacheConfigurationBuilder using the supplied helidon configuration.static <K,
V> MicrostreamCacheConfigurationBuilder <K, V> Create a CacheConfiguration builder initialized from the supplied helidon configuration node.static <K,
V> MicrostreamCacheConfigurationBuilder <K, V> Create a CacheConfiguration builder with default values.cacheLoaderFactory
(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader<K, V>> cacheLoaderFactory) cacheWriterFactory
(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter<? super K, ? super V>> cacheWriterFactory) enableManagement
(boolean enableManagement) enableStatistics
(boolean enableStatistics) evictionManagerFactory
(javax.cache.configuration.Factory<one.microstream.cache.types.EvictionManager<K, V>> evictionManagerFactory) expiryPolicyFactory
(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory) readThrough
(boolean readTrough) serializerFoundation
(one.microstream.persistence.binary.util.SerializerFoundation<?> serializerFoundation) storeByValue
(boolean storeByValue) writeThrough
(boolean writeThrough) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.cache.types.CacheConfiguration.Builder
disableManagement, disableStatistics, enableManagement, enableStatistics, readThrough, storeByReference, storeByValue, writeThrough
-
Constructor Details
-
MicrostreamCacheConfigurationBuilder
-
MicrostreamCacheConfigurationBuilder
-
-
Method Details
-
builder
creates a new MicrostreamCacheConfigurationBuilder using the supplied helidon configuration.- Parameters:
config
- helidon configuration- Returns:
- a new MicrostreamCacheConfigurationBuilder
-
builder
public static <K,V> MicrostreamCacheConfigurationBuilder<K,V> builder(Class<K> keyType, Class<V> valueType) Create a CacheConfiguration builder with default values.- Type Parameters:
K
- type of the cache keyV
- type of the cache value- Parameters:
keyType
- type of the cache keyvalueType
- type of the cache value- Returns:
- a new CacheConfiguration builder
-
builder
public static <K,V> MicrostreamCacheConfigurationBuilder<K,V> builder(Config config, Class<K> keyType, Class<V> valueType) Create a CacheConfiguration builder initialized from the supplied helidon configuration node.- Type Parameters:
K
- type of the cache keyV
- type of the cache value- Parameters:
config
- helidon configurationkeyType
- type of the cache keyvalueType
- type of the cache value- Returns:
- a new CacheConfiguration builder
-
build
Description copied from interface:Builder
Build the instance from this builder. -
readThrough
-
writeThrough
-
storeByValue
-
enableStatistics
-
enableManagement
-
expiryPolicyFactory
public MicrostreamCacheConfigurationBuilder<K,V> expiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory) -
evictionManagerFactory
public MicrostreamCacheConfigurationBuilder<K,V> evictionManagerFactory(javax.cache.configuration.Factory<one.microstream.cache.types.EvictionManager<K, V>> evictionManagerFactory) -
cacheLoaderFactory
public MicrostreamCacheConfigurationBuilder<K,V> cacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader<K, V>> cacheLoaderFactory) -
cacheWriterFactory
public MicrostreamCacheConfigurationBuilder<K,V> cacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter<? super K, ? super V>> cacheWriterFactory) -
serializerFoundation
-
addListenerConfiguration
-