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 Summary
Modifier and TypeMethodDescriptionReturns a batch factory for the associated cache.<K,V> org.infinispan.commons.api.BasicCache <K, V> getCache()Returns the cache associated with this configuration.<K,V> CacheEntryMutatorFactory <K, V> Returns the cache entry mutator associated with this configuration.<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.default StringgetName()Returns the name of the associated cache container.default <K,V> org.infinispan.commons.api.BasicCache <K, V> Returns a cache configured for write operations that return/require previous values.Returns the duration of time a service should wait for ongoing operations to complete prior to stopping.Optional<jakarta.transaction.TransactionManager> If present, returns the transaction manager associated with this cache configuration.default <K,V> org.infinispan.commons.api.BasicCache <K, V> Returns a cache configured for write-only operations, i.e. that do not return/require previous values.Methods inherited from interface BasicCacheContainerConfiguration
getCacheContainer, getExecutorMethods inherited from interface CacheConfiguration
getCacheProperties, isActive
-
Method Details
-
getName
Description copied from interface:BasicCacheContainerConfigurationReturns the name of the associated cache container.- Specified by:
getNamein interfaceBasicCacheContainerConfiguration- 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 typeV- 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 typeV- 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 typeV- the cache value type- Returns:
- a cache configured for write-only operations.
-
getCacheEntryMutatorFactory
Returns the cache entry mutator associated with this configuration.- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- the cache entry mutator associated with this configuration.
-
getCacheEntryMutatorFactory
<K,V, CacheEntryMutatorFactory<K,O> 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 typeV- the cache value typeO- 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
Description copied from interface:CacheConfigurationReturns a batch factory for the associated cache.- Specified by:
getBatchFactoryin interfaceCacheConfiguration- Returns:
- a batch factory for the associated cache.
-