Interface BasicCacheConfiguration

All Superinterfaces:
BasicCacheContainerConfiguration, CacheConfiguration
All Known Subinterfaces:
CacheRegistry.Configuration<K,V>, CacheServiceProviderRegistrar.Configuration, EmbeddedCacheConfiguration, RemoteCacheConfiguration

public interface BasicCacheConfiguration extends CacheConfiguration, BasicCacheContainerConfiguration
Infinispan cache configuration specialization for a BasicCache.
Author:
Paul Ferraro
  • Method Details

    • getName

      default String getName()
      Description copied from interface: BasicCacheContainerConfiguration
      Returns the name of the associated cache container.
      Specified by:
      getName in interface BasicCacheContainerConfiguration
      Returns:
      the name of the associated cache container.
    • getCache

      <K,V> org.infinispan.commons.api.BasicCache<K,V> getCache()
      Returns the cache associated with this configuration.
      Type Parameters:
      K - the cache key type
      V - the cache value type
      Returns:
      the cache associated with this configuration.
    • getReadWriteCache

      default <K,V> org.infinispan.commons.api.BasicCache<K,V> getReadWriteCache()
      Returns a cache configured for write operations that return/require previous values.
      Type Parameters:
      K - the cache key type
      V - the cache value type
      Returns:
      a cache configured for read/write operations.
    • getWriteOnlyCache

      default <K,V> org.infinispan.commons.api.BasicCache<K,V> getWriteOnlyCache()
      Returns a cache configured for write-only operations, i.e. that do not return/require previous values.
      Type Parameters:
      K - the cache key type
      V - the cache value type
      Returns:
      a cache configured for write-only operations.
    • getCacheEntryMutatorFactory

      <K,V> CacheEntryMutatorFactory<K,V> getCacheEntryMutatorFactory()
      Returns the cache entry mutator associated with this configuration.
      Type Parameters:
      K - the cache key type
      V - the cache value type
      Returns:
      the cache entry mutator associated with this configuration.
    • getCacheEntryMutatorFactory

      <K,V,O> CacheEntryMutatorFactory<K,O> getCacheEntryMutatorFactory(Function<O, BiFunction<Object,V,V>> functionFactory)
      Returns the compute-based cache entry mutator associated with this configuration.
      Type Parameters:
      K - the cache key type
      V - the cache value type
      O - the operand type
      Parameters:
      functionFactory - a compute function factory
      Returns:
      the compute-based cache entry mutator associated with this configuration.
    • getTransactionManager

      Optional<jakarta.transaction.TransactionManager> getTransactionManager()
      If present, returns the transaction manager associated with this cache configuration.
      Returns:
      and optional transaction manager
    • getStopTimeout

      Duration getStopTimeout()
      Returns the duration of time a service should wait for ongoing operations to complete prior to stopping.
      Returns:
      the duration of time a service should wait for ongoing operations to complete prior to stopping.
    • getBatchFactory

      default Supplier<Batch> getBatchFactory()
      Description copied from interface: CacheConfiguration
      Returns a batch factory for the associated cache.
      Specified by:
      getBatchFactory in interface CacheConfiguration
      Returns:
      a batch factory for the associated cache.