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
@Deprecated(forRemoval=true,
since="4.2.1")
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>>
Deprecated, for removal: This API element is subject to removal in a future version.
Microstream is renamed to Eclipse store and no longer updated
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
ConstructorsModifierConstructorDescriptionprotected
MicrostreamCacheConfigurationBuilder
(Class<K> keyType, Class<V> valueType) Deprecated, for removal: This API element is subject to removal in a future version.protected
MicrostreamCacheConfigurationBuilder
(one.microstream.configuration.types.Configuration configuration, Class<K> keyType, Class<V> valueType) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionaddListenerConfiguration
(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> listenerConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.build()
Deprecated, for removal: This API element is subject to removal in a future version.Build the instance from this builder.static MicrostreamCacheConfigurationBuilder
<?, ?> Deprecated, for removal: This API element is subject to removal in a future version.creates a new MicrostreamCacheConfigurationBuilder using the supplied helidon configuration.static <K,
V> MicrostreamCacheConfigurationBuilder <K, V> Deprecated, for removal: This API element is subject to removal in a future version.Create a CacheConfiguration builder initialized from the supplied helidon configuration node.static <K,
V> MicrostreamCacheConfigurationBuilder <K, V> Deprecated, for removal: This API element is subject to removal in a future version.Create a CacheConfiguration builder with default values.cacheLoaderFactory
(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader<K, V>> cacheLoaderFactory) Deprecated, for removal: This API element is subject to removal in a future version.cacheWriterFactory
(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter<? super K, ? super V>> cacheWriterFactory) Deprecated, for removal: This API element is subject to removal in a future version.enableManagement
(boolean enableManagement) Deprecated, for removal: This API element is subject to removal in a future version.enableStatistics
(boolean enableStatistics) Deprecated, for removal: This API element is subject to removal in a future version.evictionManagerFactory
(javax.cache.configuration.Factory<one.microstream.cache.types.EvictionManager<K, V>> evictionManagerFactory) Deprecated, for removal: This API element is subject to removal in a future version.expiryPolicyFactory
(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory) Deprecated, for removal: This API element is subject to removal in a future version.readThrough
(boolean readTrough) Deprecated, for removal: This API element is subject to removal in a future version.serializerFoundation
(one.microstream.persistence.binary.util.SerializerFoundation<?> serializerFoundation) Deprecated, for removal: This API element is subject to removal in a future version.storeByValue
(boolean storeByValue) Deprecated, for removal: This API element is subject to removal in a future version.writeThrough
(boolean writeThrough) Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version. -
MicrostreamCacheConfigurationBuilder
protected MicrostreamCacheConfigurationBuilder(one.microstream.configuration.types.Configuration configuration, Class<K> keyType, Class<V> valueType) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Builder
Build the instance from this builder. -
readThrough
Deprecated, for removal: This API element is subject to removal in a future version. -
writeThrough
Deprecated, for removal: This API element is subject to removal in a future version. -
storeByValue
Deprecated, for removal: This API element is subject to removal in a future version. -
enableStatistics
Deprecated, for removal: This API element is subject to removal in a future version. -
enableManagement
Deprecated, for removal: This API element is subject to removal in a future version. -
expiryPolicyFactory
public MicrostreamCacheConfigurationBuilder<K,V> expiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory) Deprecated, for removal: This API element is subject to removal in a future version. -
evictionManagerFactory
public MicrostreamCacheConfigurationBuilder<K,V> evictionManagerFactory(javax.cache.configuration.Factory<one.microstream.cache.types.EvictionManager<K, V>> evictionManagerFactory) Deprecated, for removal: This API element is subject to removal in a future version. -
cacheLoaderFactory
public MicrostreamCacheConfigurationBuilder<K,V> cacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader<K, V>> cacheLoaderFactory) Deprecated, for removal: This API element is subject to removal in a future version. -
cacheWriterFactory
public MicrostreamCacheConfigurationBuilder<K,V> cacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter<? super K, ? super V>> cacheWriterFactory) Deprecated, for removal: This API element is subject to removal in a future version. -
serializerFoundation
public one.microstream.cache.types.CacheConfiguration.Builder<K,V> serializerFoundation(one.microstream.persistence.binary.util.SerializerFoundation<?> serializerFoundation) Deprecated, for removal: This API element is subject to removal in a future version. -
addListenerConfiguration
public one.microstream.cache.types.CacheConfiguration.Builder<K,V> addListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> listenerConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.
-