Interface EmbeddedCacheConfiguration
- All Superinterfaces:
BasicCacheConfiguration,BasicCacheContainerConfiguration,CacheConfiguration,EmbeddedCacheContainerConfiguration
- All Known Subinterfaces:
CacheRegistryConfiguration,CacheServiceProviderRegistrarConfiguration,InfinispanSessionManagerConfiguration<SC>,InfinispanSessionManagerFactoryConfiguration
public interface EmbeddedCacheConfiguration
extends EmbeddedCacheContainerConfiguration, BasicCacheConfiguration
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescription<K,V> org.infinispan.Cache<K, V> getCache()default org.infinispan.manager.EmbeddedCacheManagerdefault CachePropertiesdefault <K,V> org.infinispan.Cache<K, V> Returns a cache with select-for-update semantics.default io.github.resilience4j.retry.RetryConfigReturns a retry configuration suitable for operations on this cache.default <K,V> org.infinispan.Cache<K, V> Returns a cache whose write operations do not trigger cache listeners.default jakarta.transaction.TransactionManagerdefault <K,V> org.infinispan.Cache<K, V> Returns a cache with try-lock write semantic, e.g. whose write operations will return null if another transaction owns the write lock.default <K,V> org.infinispan.Cache<K, V> Returns a cache with select-for-update and try-lock semantics.default <K,V> org.infinispan.Cache<K, V> Returns a cache for use with write-only operations, e.g. put/remove where previous values are not needed.Methods inherited from interface org.wildfly.clustering.cache.infinispan.BasicCacheConfiguration
getBatchFactoryMethods inherited from interface org.wildfly.clustering.cache.infinispan.embedded.EmbeddedCacheContainerConfiguration
getBlockingManager, getExecutor
-
Method Details
-
getCache
<K,V> org.infinispan.Cache<K,V> getCache()- Specified by:
getCachein interfaceBasicCacheConfiguration
-
getTransactionManager
default jakarta.transaction.TransactionManager getTransactionManager()- Specified by:
getTransactionManagerin interfaceBasicCacheConfiguration
-
getCacheContainer
default org.infinispan.manager.EmbeddedCacheManager getCacheContainer()- Specified by:
getCacheContainerin interfaceBasicCacheContainerConfiguration- Specified by:
getCacheContainerin interfaceEmbeddedCacheContainerConfiguration
-
getCacheProperties
- Specified by:
getCachePropertiesin interfaceBasicCacheConfiguration- Specified by:
getCachePropertiesin interfaceCacheConfiguration
-
getReadForUpdateCache
default <K,V> org.infinispan.Cache<K,V> getReadForUpdateCache()Returns a cache with select-for-update semantics.- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- a cache with select-for-update semantics.
-
getTryLockCache
default <K,V> org.infinispan.Cache<K,V> getTryLockCache()Returns a cache with try-lock write semantic, e.g. whose write operations will return null if another transaction owns the write lock.- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- a cache with try-lock semantics.
-
getTryReadForUpdateCache
default <K,V> org.infinispan.Cache<K,V> getTryReadForUpdateCache()Returns a cache with select-for-update and try-lock semantics.- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- a cache with try-lock and select-for-update semantics.
-
getWriteOnlyCache
default <K,V> org.infinispan.Cache<K,V> getWriteOnlyCache()Returns a cache for use with write-only operations, e.g. put/remove where previous values are not needed.- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- a cache for use with write-only operations.
-
getSilentWriteCache
default <K,V> org.infinispan.Cache<K,V> getSilentWriteCache()Returns a cache whose write operations do not trigger cache listeners.- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- a cache whose write operations do not trigger cache listeners.
-
getRetryConfig
default io.github.resilience4j.retry.RetryConfig getRetryConfig()Returns a retry configuration suitable for operations on this cache.- Returns:
- a retry configuration
-