Class MicrostreamCacheConfigurationBuilder<K,V>

java.lang.Object
io.helidon.integrations.microstream.cache.MicrostreamCacheConfigurationBuilder<K,V>
Type Parameters:
K - type of the cache key
V - 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    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 Type
    Method
    Description
    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.
     
    one.microstream.cache.types.CacheConfiguration<K,V>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Build the instance from this builder.
    builder(Config config)
    Deprecated, for removal: This API element is subject to removal in a future version.
    creates a new MicrostreamCacheConfigurationBuilder using the supplied helidon configuration.
    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.
    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.
    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.
     
    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.
     
    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 io.helidon.common.Builder

    get, identity, update

    Methods inherited from interface one.microstream.cache.types.CacheConfiguration.Builder

    disableManagement, disableStatistics, enableManagement, enableStatistics, readThrough, storeByReference, storeByValue, writeThrough
  • Constructor Details

    • MicrostreamCacheConfigurationBuilder

      protected MicrostreamCacheConfigurationBuilder(Class<K> keyType, Class<V> valueType)
      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

      public static MicrostreamCacheConfigurationBuilder<?,?> builder(Config config)
      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 key
      V - type of the cache value
      Parameters:
      keyType - type of the cache key
      valueType - 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 key
      V - type of the cache value
      Parameters:
      config - helidon configuration
      keyType - type of the cache key
      valueType - type of the cache value
      Returns:
      a new CacheConfiguration builder
    • build

      public one.microstream.cache.types.CacheConfiguration<K,V> 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.
      Specified by:
      build in interface Builder<K,V>
      Specified by:
      build in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
      Returns:
      instance of the built type
    • readThrough

      public MicrostreamCacheConfigurationBuilder<K,V> readThrough(boolean readTrough)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      readThrough in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • writeThrough

      public MicrostreamCacheConfigurationBuilder<K,V> writeThrough(boolean writeThrough)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      writeThrough in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • storeByValue

      public MicrostreamCacheConfigurationBuilder<K,V> storeByValue(boolean storeByValue)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      storeByValue in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • enableStatistics

      public MicrostreamCacheConfigurationBuilder<K,V> enableStatistics(boolean enableStatistics)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      enableStatistics in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • enableManagement

      public MicrostreamCacheConfigurationBuilder<K,V> enableManagement(boolean enableManagement)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      enableManagement in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • 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.
      Specified by:
      expiryPolicyFactory in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • 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.
      Specified by:
      evictionManagerFactory in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • 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.
      Specified by:
      cacheLoaderFactory in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • 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.
      Specified by:
      cacheWriterFactory in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • 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.
      Specified by:
      serializerFoundation in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>
    • 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.
      Specified by:
      addListenerConfiguration in interface one.microstream.cache.types.CacheConfiguration.Builder<K,V>