Class AdvancedCacheDecorator<K,V>

Type Parameters:
K - the cache key type
V - the cache value type
All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K,V>, org.infinispan.AdvancedCache<K,V>, org.infinispan.Cache<K,V>, org.infinispan.cache.impl.InternalCache<K,V>, org.infinispan.commons.api.AsyncCache<K,V>, org.infinispan.commons.api.BasicCache<K,V>, org.infinispan.commons.api.BatchingCache, org.infinispan.commons.api.Lifecycle, org.infinispan.commons.api.TransactionalCache, org.infinispan.notifications.FilteringListenable<K,V>, org.infinispan.notifications.Listenable

public class AdvancedCacheDecorator<K,V> extends NonBlockingBasicCacheDecorator<K,V> implements org.infinispan.AdvancedCache<K,V>, org.infinispan.cache.impl.InternalCache<K,V>
An AdvancedCache decorator. N.B. Implements InternalCache which is required by ComponentRegistry.of(org.infinispan.Cache).
Author:
Paul Ferraro
  • Constructor Details

    • AdvancedCacheDecorator

      protected AdvancedCacheDecorator(org.infinispan.AdvancedCache<K,V> cache, UnaryOperator<org.infinispan.AdvancedCache<K,V>> decorator)
      Creates an embedded cache decorator.
      Parameters:
      cache - the cache to which to delegate.
      decorator - the cache decorator
  • Method Details

    • getComponentRegistry

      public org.infinispan.factories.ComponentRegistry getComponentRegistry()
      Specified by:
      getComponentRegistry in interface org.infinispan.cache.impl.InternalCache<K,V>
    • bypassInvocationContextFactory

      public boolean bypassInvocationContextFactory()
      Specified by:
      bypassInvocationContextFactory in interface org.infinispan.cache.impl.InternalCache<K,V>
    • getCacheConfiguration

      public org.infinispan.configuration.cache.Configuration getCacheConfiguration()
      Specified by:
      getCacheConfiguration in interface org.infinispan.Cache<K,V>
    • getCacheManager

      public org.infinispan.manager.EmbeddedCacheManager getCacheManager()
      Specified by:
      getCacheManager in interface org.infinispan.Cache<K,V>
    • getAdvancedCache

      public org.infinispan.AdvancedCache<K,V> getAdvancedCache()
      Specified by:
      getAdvancedCache in interface org.infinispan.Cache<K,V>
    • getAvailability

      public org.infinispan.partitionhandling.AvailabilityMode getAvailability()
      Specified by:
      getAvailability in interface org.infinispan.AdvancedCache<K,V>
    • setAvailability

      public void setAvailability(org.infinispan.partitionhandling.AvailabilityMode availabilityMode)
      Specified by:
      setAvailability in interface org.infinispan.AdvancedCache<K,V>
    • getAuthorizationManager

      public org.infinispan.security.AuthorizationManager getAuthorizationManager()
      Specified by:
      getAuthorizationManager in interface org.infinispan.AdvancedCache<K,V>
    • getBatchContainer

      public org.infinispan.batch.BatchContainer getBatchContainer()
      Specified by:
      getBatchContainer in interface org.infinispan.AdvancedCache<K,V>
    • getClassLoader

      public ClassLoader getClassLoader()
      Specified by:
      getClassLoader in interface org.infinispan.AdvancedCache<K,V>
    • getStatus

      public org.infinispan.lifecycle.ComponentStatus getStatus()
      Specified by:
      getStatus in interface org.infinispan.Cache<K,V>
    • getDataContainer

      public org.infinispan.container.DataContainer<K,V> getDataContainer()
      Specified by:
      getDataContainer in interface org.infinispan.AdvancedCache<K,V>
    • getKeyDataConversion

      public org.infinispan.encoding.DataConversion getKeyDataConversion()
      Specified by:
      getKeyDataConversion in interface org.infinispan.AdvancedCache<K,V>
    • getValueDataConversion

      public org.infinispan.encoding.DataConversion getValueDataConversion()
      Specified by:
      getValueDataConversion in interface org.infinispan.AdvancedCache<K,V>
    • getDistributionManager

      public org.infinispan.distribution.DistributionManager getDistributionManager()
      Specified by:
      getDistributionManager in interface org.infinispan.AdvancedCache<K,V>
    • getExpirationManager

      public org.infinispan.expiration.ExpirationManager<K,V> getExpirationManager()
      Specified by:
      getExpirationManager in interface org.infinispan.AdvancedCache<K,V>
    • getLockManager

      public org.infinispan.util.concurrent.locks.LockManager getLockManager()
      Specified by:
      getLockManager in interface org.infinispan.AdvancedCache<K,V>
    • getRpcManager

      public org.infinispan.remoting.rpc.RpcManager getRpcManager()
      Specified by:
      getRpcManager in interface org.infinispan.AdvancedCache<K,V>
    • getStats

      public org.infinispan.stats.Stats getStats()
      Specified by:
      getStats in interface org.infinispan.AdvancedCache<K,V>
    • getTransactionManager

      public jakarta.transaction.TransactionManager getTransactionManager()
      Specified by:
      getTransactionManager in interface org.infinispan.commons.api.TransactionalCache
    • getXAResource

      public XAResource getXAResource()
      Specified by:
      getXAResource in interface org.infinispan.AdvancedCache<K,V>
    • lockAs

      public org.infinispan.AdvancedCache<K,V> lockAs(Object lockOwner)
      Specified by:
      lockAs in interface org.infinispan.AdvancedCache<K,V>
    • noFlags

      public org.infinispan.AdvancedCache<K,V> noFlags()
      Specified by:
      noFlags in interface org.infinispan.AdvancedCache<K,V>
    • transform

      public org.infinispan.AdvancedCache<K,V> transform(Function<org.infinispan.AdvancedCache<K,V>, ? extends org.infinispan.AdvancedCache<K,V>> transformation)
      Specified by:
      transform in interface org.infinispan.AdvancedCache<K,V>
    • withFlags

      public org.infinispan.AdvancedCache<K,V> withFlags(org.infinispan.context.Flag flag)
      Specified by:
      withFlags in interface org.infinispan.AdvancedCache<K,V>
    • withFlags

      public org.infinispan.AdvancedCache<K,V> withFlags(org.infinispan.context.Flag... flags)
      Specified by:
      withFlags in interface org.infinispan.AdvancedCache<K,V>
    • withFlags

      public org.infinispan.AdvancedCache<K,V> withFlags(Collection<org.infinispan.context.Flag> flags)
      Specified by:
      withFlags in interface org.infinispan.AdvancedCache<K,V>
    • withMediaType

      public <K1,V1> org.infinispan.AdvancedCache<K1,V1> withMediaType(org.infinispan.commons.dataconversion.MediaType keyMediaType, org.infinispan.commons.dataconversion.MediaType valueMediaType)
      Specified by:
      withMediaType in interface org.infinispan.AdvancedCache<K,V>
    • withStorageMediaType

      public org.infinispan.AdvancedCache<K,V> withStorageMediaType()
      Specified by:
      withStorageMediaType in interface org.infinispan.AdvancedCache<K,V>
    • withSubject

      public org.infinispan.AdvancedCache<K,V> withSubject(Subject subject)
      Specified by:
      withSubject in interface org.infinispan.AdvancedCache<K,V>
    • cachePublisher

      public org.infinispan.CachePublisher<K,V> cachePublisher()
      Specified by:
      cachePublisher in interface org.infinispan.AdvancedCache<K,V>
    • cacheEntrySet

      public org.infinispan.CacheSet<org.infinispan.container.entries.CacheEntry<K,V>> cacheEntrySet()
      Specified by:
      cacheEntrySet in interface org.infinispan.AdvancedCache<K,V>
    • entrySet

      public org.infinispan.CacheSet<Map.Entry<K,V>> entrySet()
      Specified by:
      entrySet in interface org.infinispan.Cache<K,V>
      Specified by:
      entrySet in interface Map<K,V>
      Overrides:
      entrySet in class AbstractBasicCacheDecorator<K,V>
    • keySet

      public org.infinispan.CacheSet<K> keySet()
      Specified by:
      keySet in interface org.infinispan.Cache<K,V>
      Specified by:
      keySet in interface Map<K,V>
      Overrides:
      keySet in class AbstractBasicCacheDecorator<K,V>
    • lockedStream

      public org.infinispan.LockedStream<K,V> lockedStream()
      Specified by:
      lockedStream in interface org.infinispan.AdvancedCache<K,V>
    • values

      public org.infinispan.CacheCollection<V> values()
      Specified by:
      values in interface org.infinispan.Cache<K,V>
      Specified by:
      values in interface Map<K,V>
      Overrides:
      values in class AbstractBasicCacheDecorator<K,V>
    • clear

      public void clear()
      Specified by:
      clear in interface org.infinispan.Cache<K,V>
      Specified by:
      clear in interface Map<K,V>
      Overrides:
      clear in class NonBlockingBasicCacheDecorator<K,V>
    • clearAsync

      public CompletableFuture<Void> clearAsync()
      Specified by:
      clearAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      clearAsync in class AbstractBasicCacheDecorator<K,V>
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map<K,V>
      Overrides:
      containsKey in class NonBlockingBasicCacheDecorator<K,V>
    • containsKeyAsync

      public CompletableFuture<Boolean> containsKeyAsync(K key)
      Specified by:
      containsKeyAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      containsKeyAsync in class AbstractBasicCacheDecorator<K,V>
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface Map<K,V>
      Overrides:
      containsValue in class AbstractBasicCacheDecorator<K,V>
    • size

      public int size()
      Specified by:
      size in interface org.infinispan.Cache<K,V>
      Specified by:
      size in interface Map<K,V>
      Overrides:
      size in class NonBlockingBasicCacheDecorator<K,V>
    • sizeAsync

      public CompletableFuture<Long> sizeAsync()
      Specified by:
      sizeAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      sizeAsync in class AbstractBasicCacheDecorator<K,V>
    • getOrDefault

      public V getOrDefault(Object key, V defaultValue)
      Specified by:
      getOrDefault in interface ConcurrentMap<K,V>
      Specified by:
      getOrDefault in interface Map<K,V>
    • getAllAsync

      public CompletableFuture<Map<K,V>> getAllAsync(Set<?> keys)
      Specified by:
      getAllAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      getAllAsync in class AbstractBasicCacheDecorator<K,V>
    • compute

      public V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction)
      Specified by:
      compute in interface org.infinispan.Cache<K,V>
      Specified by:
      compute in interface ConcurrentMap<K,V>
      Specified by:
      compute in interface Map<K,V>
      Overrides:
      compute in class NonBlockingBasicCacheDecorator<K,V>
    • compute

      public V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      compute in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      compute in class NonBlockingBasicCacheDecorator<K,V>
    • compute

      public V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      compute in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      compute in class NonBlockingBasicCacheDecorator<K,V>
    • compute

      public V compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata)
      Specified by:
      compute in interface org.infinispan.AdvancedCache<K,V>
    • computeAsync

      public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction)
      Specified by:
      computeAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeAsync in class AbstractBasicCacheDecorator<K,V>
    • computeAsync

      public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      computeAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeAsync in class AbstractBasicCacheDecorator<K,V>
    • computeAsync

      public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      computeAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeAsync in class AbstractBasicCacheDecorator<K,V>
    • computeAsync

      public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata)
      Specified by:
      computeAsync in interface org.infinispan.AdvancedCache<K,V>
    • computeIfAbsent

      public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction)
      Specified by:
      computeIfAbsent in interface org.infinispan.Cache<K,V>
      Specified by:
      computeIfAbsent in interface ConcurrentMap<K,V>
      Specified by:
      computeIfAbsent in interface Map<K,V>
      Overrides:
      computeIfAbsent in class NonBlockingBasicCacheDecorator<K,V>
    • computeIfAbsent

      public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      computeIfAbsent in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      computeIfAbsent in class NonBlockingBasicCacheDecorator<K,V>
    • computeIfAbsent

      public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      computeIfAbsent in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      computeIfAbsent in class NonBlockingBasicCacheDecorator<K,V>
    • computeIfAbsent

      public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction, org.infinispan.metadata.Metadata metadata)
      Specified by:
      computeIfAbsent in interface org.infinispan.AdvancedCache<K,V>
    • computeIfAbsentAsync

      public CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction)
      Specified by:
      computeIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeIfAbsentAsync in class AbstractBasicCacheDecorator<K,V>
    • computeIfAbsentAsync

      public CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      computeIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeIfAbsentAsync in class AbstractBasicCacheDecorator<K,V>
    • computeIfAbsentAsync

      public CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      computeIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeIfAbsentAsync in class AbstractBasicCacheDecorator<K,V>
    • computeIfAbsentAsync

      public CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction, org.infinispan.metadata.Metadata metadata)
      Specified by:
      computeIfAbsentAsync in interface org.infinispan.AdvancedCache<K,V>
    • computeIfPresent

      public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction)
      Specified by:
      computeIfPresent in interface org.infinispan.Cache<K,V>
      Specified by:
      computeIfPresent in interface ConcurrentMap<K,V>
      Specified by:
      computeIfPresent in interface Map<K,V>
      Overrides:
      computeIfPresent in class NonBlockingBasicCacheDecorator<K,V>
    • computeIfPresent

      public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      computeIfPresent in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      computeIfPresent in class NonBlockingBasicCacheDecorator<K,V>
    • computeIfPresent

      public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      computeIfPresent in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      computeIfPresent in class NonBlockingBasicCacheDecorator<K,V>
    • computeIfPresent

      public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata)
      Specified by:
      computeIfPresent in interface org.infinispan.AdvancedCache<K,V>
    • computeIfPresentAsync

      public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction)
      Specified by:
      computeIfPresentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeIfPresentAsync in class AbstractBasicCacheDecorator<K,V>
    • computeIfPresentAsync

      public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      computeIfPresentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeIfPresentAsync in class AbstractBasicCacheDecorator<K,V>
    • computeIfPresentAsync

      public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      computeIfPresentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      computeIfPresentAsync in class AbstractBasicCacheDecorator<K,V>
    • computeIfPresentAsync

      public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata)
      Specified by:
      computeIfPresentAsync in interface org.infinispan.AdvancedCache<K,V>
    • getAll

      public Map<K,V> getAll(Set<?> keys)
      Specified by:
      getAll in interface org.infinispan.AdvancedCache<K,V>
    • lock

      public boolean lock(K... keys)
      Specified by:
      lock in interface org.infinispan.AdvancedCache<K,V>
    • lock

      public boolean lock(Collection<? extends K> keys)
      Specified by:
      lock in interface org.infinispan.AdvancedCache<K,V>
    • merge

      public V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction)
      Specified by:
      merge in interface org.infinispan.Cache<K,V>
      Specified by:
      merge in interface ConcurrentMap<K,V>
      Specified by:
      merge in interface Map<K,V>
      Overrides:
      merge in class NonBlockingBasicCacheDecorator<K,V>
    • merge

      public V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      merge in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      merge in class NonBlockingBasicCacheDecorator<K,V>
    • merge

      public V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      merge in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      merge in class NonBlockingBasicCacheDecorator<K,V>
    • merge

      public V merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata)
      Specified by:
      merge in interface org.infinispan.AdvancedCache<K,V>
    • mergeAsync

      public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction)
      Specified by:
      mergeAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      mergeAsync in class AbstractBasicCacheDecorator<K,V>
    • mergeAsync

      public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      mergeAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      mergeAsync in class AbstractBasicCacheDecorator<K,V>
    • mergeAsync

      public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      mergeAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      mergeAsync in class AbstractBasicCacheDecorator<K,V>
    • mergeAsync

      public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata)
      Specified by:
      mergeAsync in interface org.infinispan.AdvancedCache<K,V>
    • put

      public V put(K key, V value)
      Specified by:
      put in interface org.infinispan.commons.api.BasicCache<K,V>
      Specified by:
      put in interface Map<K,V>
      Overrides:
      put in class NonBlockingBasicCacheDecorator<K,V>
    • put

      public V put(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      put in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      put in class NonBlockingBasicCacheDecorator<K,V>
    • put

      public V put(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      put in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      put in class NonBlockingBasicCacheDecorator<K,V>
    • put

      public V put(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      put in interface org.infinispan.AdvancedCache<K,V>
    • putAsync

      public CompletableFuture<V> putAsync(K key, V value)
      Specified by:
      putAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAsync in class AbstractBasicCacheDecorator<K,V>
    • putAsync

      public CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAsync in class AbstractBasicCacheDecorator<K,V>
    • putAsync

      public CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      putAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAsync in class AbstractBasicCacheDecorator<K,V>
    • putAsync

      public CompletableFuture<V> putAsync(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      putAsync in interface org.infinispan.AdvancedCache<K,V>
    • putAll

      public void putAll(Map<? extends K, ? extends V> map)
      Specified by:
      putAll in interface Map<K,V>
      Overrides:
      putAll in class NonBlockingBasicCacheDecorator<K,V>
    • putAll

      public void putAll(Map<? extends K, ? extends V> map, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putAll in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      putAll in class NonBlockingBasicCacheDecorator<K,V>
    • putAll

      public void putAll(Map<? extends K, ? extends V> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      putAll in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      putAll in class NonBlockingBasicCacheDecorator<K,V>
    • putAll

      public void putAll(Map<? extends K, ? extends V> map, org.infinispan.metadata.Metadata metadata)
      Specified by:
      putAll in interface org.infinispan.AdvancedCache<K,V>
    • putAllAsync

      public CompletableFuture<Void> putAllAsync(Map<? extends K, ? extends V> data)
      Specified by:
      putAllAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAllAsync in class AbstractBasicCacheDecorator<K,V>
    • putAllAsync

      public CompletableFuture<Void> putAllAsync(Map<? extends K, ? extends V> data, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putAllAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAllAsync in class AbstractBasicCacheDecorator<K,V>
    • putAllAsync

      public CompletableFuture<Void> putAllAsync(Map<? extends K, ? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      putAllAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAllAsync in class AbstractBasicCacheDecorator<K,V>
    • putAllAsync

      public CompletableFuture<Void> putAllAsync(Map<? extends K, ? extends V> map, org.infinispan.metadata.Metadata metadata)
      Specified by:
      putAllAsync in interface org.infinispan.AdvancedCache<K,V>
    • putForExternalRead

      public void putForExternalRead(K key, V value)
      Specified by:
      putForExternalRead in interface org.infinispan.Cache<K,V>
    • putForExternalRead

      public void putForExternalRead(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putForExternalRead in interface org.infinispan.Cache<K,V>
    • putForExternalRead

      public void putForExternalRead(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      putForExternalRead in interface org.infinispan.Cache<K,V>
    • putForExternalRead

      public void putForExternalRead(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      putForExternalRead in interface org.infinispan.AdvancedCache<K,V>
    • putIfAbsent

      public V putIfAbsent(K key, V value)
      Specified by:
      putIfAbsent in interface ConcurrentMap<K,V>
      Specified by:
      putIfAbsent in interface Map<K,V>
      Overrides:
      putIfAbsent in class NonBlockingBasicCacheDecorator<K,V>
    • putIfAbsent

      public V putIfAbsent(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putIfAbsent in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      putIfAbsent in class NonBlockingBasicCacheDecorator<K,V>
    • putIfAbsent

      public V putIfAbsent(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      putIfAbsent in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      putIfAbsent in class NonBlockingBasicCacheDecorator<K,V>
    • putIfAbsent

      public V putIfAbsent(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      putIfAbsent in interface org.infinispan.AdvancedCache<K,V>
    • putIfAbsentAsync

      public CompletableFuture<V> putIfAbsentAsync(K key, V value)
      Specified by:
      putIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putIfAbsentAsync in class AbstractBasicCacheDecorator<K,V>
    • putIfAbsentAsync

      public CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putIfAbsentAsync in class AbstractBasicCacheDecorator<K,V>
    • putIfAbsentAsync

      public CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      putIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putIfAbsentAsync in class AbstractBasicCacheDecorator<K,V>
    • putIfAbsentAsync

      public CompletableFuture<V> putIfAbsentAsync(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      putIfAbsentAsync in interface org.infinispan.AdvancedCache<K,V>
    • replace

      public V replace(K key, V value)
      Specified by:
      replace in interface ConcurrentMap<K,V>
      Specified by:
      replace in interface Map<K,V>
      Overrides:
      replace in class NonBlockingBasicCacheDecorator<K,V>
    • replace

      public V replace(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      replace in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      replace in class NonBlockingBasicCacheDecorator<K,V>
    • replace

      public V replace(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      replace in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      replace in class NonBlockingBasicCacheDecorator<K,V>
    • replace

      public V replace(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      replace in interface org.infinispan.AdvancedCache<K,V>
    • replaceAsync

      public CompletableFuture<V> replaceAsync(K key, V value)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleUnit)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<V> replaceAsync(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      replaceAsync in interface org.infinispan.AdvancedCache<K,V>
    • replace

      public boolean replace(K key, V oldValue, V newValue)
      Specified by:
      replace in interface ConcurrentMap<K,V>
      Specified by:
      replace in interface Map<K,V>
      Overrides:
      replace in class NonBlockingBasicCacheDecorator<K,V>
    • replace

      public boolean replace(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      replace in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      replace in class NonBlockingBasicCacheDecorator<K,V>
    • replace

      public boolean replace(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      replace in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      replace in class NonBlockingBasicCacheDecorator<K,V>
    • replace

      public boolean replace(K key, V oldValue, V newValue, org.infinispan.metadata.Metadata metadata)
      Specified by:
      replace in interface org.infinispan.AdvancedCache<K,V>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, org.infinispan.metadata.Metadata metadata)
      Specified by:
      replaceAsync in interface org.infinispan.AdvancedCache<K,V>
    • evict

      public void evict(K key)
      Specified by:
      evict in interface org.infinispan.Cache<K,V>
    • removeLifespanExpired

      public CompletableFuture<Boolean> removeLifespanExpired(K key, V value, Long lifespan)
      Specified by:
      removeLifespanExpired in interface org.infinispan.AdvancedCache<K,V>
    • removeMaxIdleExpired

      public CompletableFuture<Boolean> removeMaxIdleExpired(K key, V value)
      Specified by:
      removeMaxIdleExpired in interface org.infinispan.AdvancedCache<K,V>
    • touch

      public CompletionStage<Boolean> touch(Object key, boolean touchEvenIfExpired)
      Specified by:
      touch in interface org.infinispan.AdvancedCache<K,V>
    • touch

      public CompletionStage<Boolean> touch(Object key, int segment, boolean touchEvenIfExpired)
      Specified by:
      touch in interface org.infinispan.AdvancedCache<K,V>
    • getCacheEntry

      public org.infinispan.container.entries.CacheEntry<K,V> getCacheEntry(Object key)
      Specified by:
      getCacheEntry in interface org.infinispan.AdvancedCache<K,V>
    • getAllCacheEntries

      public Map<K, org.infinispan.container.entries.CacheEntry<K,V>> getAllCacheEntries(Set<?> keys)
      Specified by:
      getAllCacheEntries in interface org.infinispan.AdvancedCache<K,V>
    • getCacheEntryAsync

      public CompletableFuture<org.infinispan.container.entries.CacheEntry<K,V>> getCacheEntryAsync(Object key)
      Specified by:
      getCacheEntryAsync in interface org.infinispan.AdvancedCache<K,V>
    • putAsyncEntry

      public CompletableFuture<org.infinispan.container.entries.CacheEntry<K,V>> putAsyncEntry(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      putAsyncEntry in interface org.infinispan.AdvancedCache<K,V>
    • putIfAbsentAsyncEntry

      public CompletableFuture<org.infinispan.container.entries.CacheEntry<K,V>> putIfAbsentAsyncEntry(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      putIfAbsentAsyncEntry in interface org.infinispan.AdvancedCache<K,V>
    • replaceAsyncEntry

      public CompletableFuture<org.infinispan.container.entries.CacheEntry<K,V>> replaceAsyncEntry(K key, V value, org.infinispan.metadata.Metadata metadata)
      Specified by:
      replaceAsyncEntry in interface org.infinispan.AdvancedCache<K,V>
    • removeAsyncEntry

      public CompletableFuture<org.infinispan.container.entries.CacheEntry<K,V>> removeAsyncEntry(Object key)
      Specified by:
      removeAsyncEntry in interface org.infinispan.AdvancedCache<K,V>
    • startBatch

      public boolean startBatch()
      Specified by:
      startBatch in interface org.infinispan.commons.api.BatchingCache
    • endBatch

      public void endBatch(boolean successful)
      Specified by:
      endBatch in interface org.infinispan.commons.api.BatchingCache
    • getGroup

      public Map<K,V> getGroup(String groupName)
      Specified by:
      getGroup in interface org.infinispan.AdvancedCache<K,V>
    • removeGroup

      public void removeGroup(String groupName)
      Specified by:
      removeGroup in interface org.infinispan.AdvancedCache<K,V>
    • addListenerAsync

      public <C> CompletionStage<Void> addListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K, ? super V, C> converter)
      Specified by:
      addListenerAsync in interface org.infinispan.notifications.FilteringListenable<K,V>
    • addFilteredListenerAsync

      public <C> CompletionStage<Void> addFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K, ? super V, C> converter, Set<Class<? extends Annotation>> filterAnnotations)
      Specified by:
      addFilteredListenerAsync in interface org.infinispan.notifications.FilteringListenable<K,V>
    • addStorageFormatFilteredListenerAsync

      public <C> CompletionStage<Void> addStorageFormatFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K, ? super V, C> converter, Set<Class<? extends Annotation>> filterAnnotations)
      Specified by:
      addStorageFormatFilteredListenerAsync in interface org.infinispan.notifications.FilteringListenable<K,V>
    • addListenerAsync

      public CompletionStage<Void> addListenerAsync(Object listener)
      Specified by:
      addListenerAsync in interface org.infinispan.notifications.Listenable
    • removeListenerAsync

      public CompletionStage<Void> removeListenerAsync(Object listener)
      Specified by:
      removeListenerAsync in interface org.infinispan.notifications.Listenable
    • query

      public <T> org.infinispan.commons.api.query.Query<T> query(String query)
      Specified by:
      query in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      query in class AbstractBasicCacheDecorator<K,V>
    • continuousQuery

      public org.infinispan.commons.api.query.ContinuousQuery<K,V> continuousQuery()
      Specified by:
      continuousQuery in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      continuousQuery in class AbstractBasicCacheDecorator<K,V>
    • equals

      public boolean equals(Object object)
      Specified by:
      equals in interface Map<K,V>
      Overrides:
      equals in class AbstractBasicCacheDecorator<K,V>