Interface RemoteCacheConfiguration
- All Superinterfaces:
BasicCacheConfiguration, BasicCacheContainerConfiguration, CacheConfiguration, RemoteCacheContainerConfiguration
public interface RemoteCacheConfiguration
extends RemoteCacheContainerConfiguration, BasicCacheConfiguration
Configuration associated with a remote cache.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescription<K,V> org.infinispan.client.hotrod.RemoteCache <K, V> getCache()Returns the cache associated with this configuration.default org.infinispan.client.hotrod.RemoteCacheContainerReturns the associated cache container.default <K,V> CacheEntryMutatorFactory <K, V> Returns the cache entry mutator associated with this configuration.default <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 CachePropertiesReturns the properties of the associated cache.default ExecutorReturns the executor associated with this cache container.default <K,V> org.infinispan.client.hotrod.RemoteCache <K, V> Returns a remote cache that whose writes will include return values.default <K,V> org.infinispan.client.hotrod.RemoteCache <K, V> Returns a remote cache that whose writes will ignore return values.default StringgetName()Returns the name of the associated cache container.default org.infinispan.client.hotrod.configuration.NearCacheModeReturns the near cache mode of the associated cache.default <K,V> org.infinispan.client.hotrod.RemoteCache <K, V> Returns a cache with select-for-update semantics.default <K,V> org.infinispan.client.hotrod.RemoteCache <K, V> Returns a cache configured for write operations that return/require previous values.default DurationReturns the duration of time a service should wait for ongoing operations to complete prior to stopping.default Optional<jakarta.transaction.TransactionManager> If present, returns the transaction manager associated with this cache configuration.default <K,V> org.infinispan.client.hotrod.RemoteCache <K, V> Returns a cache configured for write-only operations, i.e. that do not return/require previous values.default booleanisActive()Indicates whether the associated cache is active.static RemoteCacheConfigurationof(org.infinispan.client.hotrod.RemoteCache<?, ?> cache) Creates a cache configuration for the specified cache.static RemoteCacheConfigurationCreates a cache configuration using the specified cache of the specified manager.Methods inherited from interface BasicCacheConfiguration
getBatchFactory
-
Method Details
-
of
static RemoteCacheConfiguration of(org.infinispan.client.hotrod.RemoteCacheContainer container, String cacheName) Creates a cache configuration using the specified cache of the specified manager.- Parameters:
container- a cache containercacheName- a cache name- Returns:
- a cache configuration
-
of
Creates a cache configuration for the specified cache.- Parameters:
cache- a cache- Returns:
- a cache configuration
-
getCache
<K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getCache()Description copied from interface:BasicCacheConfigurationReturns the cache associated with this configuration.- Specified by:
getCachein interfaceBasicCacheConfiguration- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- the cache associated with this configuration.
-
getName
Description copied from interface:BasicCacheContainerConfigurationReturns the name of the associated cache container.- Specified by:
getNamein interfaceBasicCacheConfiguration- Specified by:
getNamein interfaceBasicCacheContainerConfiguration- Specified by:
getNamein interfaceRemoteCacheContainerConfiguration- Returns:
- the name of the associated cache container.
-
isActive
default boolean isActive()Description copied from interface:CacheConfigurationIndicates whether the associated cache is active.- Specified by:
isActivein interfaceCacheConfiguration- Returns:
- true, if the associated cache is active, false otherwise.
-
getCacheEntryMutatorFactory
Description copied from interface:BasicCacheConfigurationReturns the cache entry mutator associated with this configuration.- Specified by:
getCacheEntryMutatorFactoryin interfaceBasicCacheConfiguration- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- the cache entry mutator associated with this configuration.
-
getCacheEntryMutatorFactory
default <K,V, CacheEntryMutatorFactory<K,O> O> getCacheEntryMutatorFactory(Function<O, BiFunction<Object, V, V>> functionFactory) Description copied from interface:BasicCacheConfigurationReturns the compute-based cache entry mutator associated with this configuration.- Specified by:
getCacheEntryMutatorFactoryin interfaceBasicCacheConfiguration- 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.
-
getCacheContainer
default org.infinispan.client.hotrod.RemoteCacheContainer getCacheContainer()Description copied from interface:BasicCacheContainerConfigurationReturns the associated cache container.- Specified by:
getCacheContainerin interfaceBasicCacheContainerConfiguration- Specified by:
getCacheContainerin interfaceRemoteCacheContainerConfiguration- Returns:
- the associated cache container.
-
getExecutor
Description copied from interface:BasicCacheContainerConfigurationReturns the executor associated with this cache container.- Specified by:
getExecutorin interfaceBasicCacheContainerConfiguration- Returns:
- the executor associated with this cache container.
-
getTransactionManager
Description copied from interface:BasicCacheConfigurationIf present, returns the transaction manager associated with this cache configuration.- Specified by:
getTransactionManagerin interfaceBasicCacheConfiguration- Returns:
- and optional transaction manager
-
getReadWriteCache
default <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getReadWriteCache()Description copied from interface:BasicCacheConfigurationReturns a cache configured for write operations that return/require previous values.- Specified by:
getReadWriteCachein interfaceBasicCacheConfiguration- 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.client.hotrod.RemoteCache<K,V> getWriteOnlyCache()Description copied from interface:BasicCacheConfigurationReturns a cache configured for write-only operations, i.e. that do not return/require previous values.- Specified by:
getWriteOnlyCachein interfaceBasicCacheConfiguration- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- a cache configured for write-only operations.
-
getReadForUpdateCache
default <K,V> org.infinispan.client.hotrod.RemoteCache<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.
-
getIgnoreReturnCache
default <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getIgnoreReturnCache()Returns a remote cache that whose writes will ignore return values.- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- a remote cache that whose writes will ignore return values.
-
getForceReturnCache
default <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getForceReturnCache()Returns a remote cache that whose writes will include return values.- Type Parameters:
K- the cache key typeV- the cache value type- Returns:
- a remote cache that whose writes will indlude return values.
-
getNearCacheMode
default org.infinispan.client.hotrod.configuration.NearCacheMode getNearCacheMode()Returns the near cache mode of the associated cache.- Returns:
- the near cache mode of the associated cache.
-
getCacheProperties
Description copied from interface:CacheConfigurationReturns the properties of the associated cache.- Specified by:
getCachePropertiesin interfaceCacheConfiguration- Returns:
- the properties of the associated cache.
-
getStopTimeout
Description copied from interface:BasicCacheConfigurationReturns the duration of time a service should wait for ongoing operations to complete prior to stopping.- Specified by:
getStopTimeoutin interfaceBasicCacheConfiguration- Returns:
- the duration of time a service should wait for ongoing operations to complete prior to stopping.
-