Package org.infinispan.cache.impl
Class CacheSupport<K,V>
- java.lang.Object
-
- org.infinispan.cache.impl.CacheSupport<K,V>
-
- All Implemented Interfaces:
ConcurrentMap<K,V>,Map<K,V>,org.infinispan.commons.api.AsyncCache<K,V>,org.infinispan.commons.api.BasicCache<K,V>,org.infinispan.commons.api.Lifecycle
public abstract class CacheSupport<K,V> extends Object implements org.infinispan.commons.api.BasicCache<K,V>
- Since:
- 4.1
- Author:
- Mircea.Markus@jboss.com
-
-
Field Summary
Fields Modifier and Type Field Description protected longdefaultLifespanprotected longdefaultMaxIdleTime
-
Constructor Summary
Constructors Modifier Constructor Description protectedCacheSupport()protectedCacheSupport(long defaultLifespan, long defaultMaxIdleTime)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Vmerge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)Vmerge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)Vput(K key, V value)Vput(K key, V value, long lifespan, TimeUnit unit)voidputAll(Map<? extends K,? extends V> map)voidputAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit unit)CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data)CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit unit)CompletableFuture<V>putAsync(K key, V value)CompletableFuture<V>putAsync(K key, V value, long lifespan, TimeUnit unit)VputIfAbsent(K key, V value)VputIfAbsent(K key, V value, long lifespan, TimeUnit unit)CompletableFuture<V>putIfAbsentAsync(K key, V value)CompletableFuture<V>putIfAbsentAsync(K key, V value, long lifespan, TimeUnit unit)Vreplace(K key, V value)Vreplace(K key, V value, long lifespan, TimeUnit unit)booleanreplace(K key, V oldValue, V newValue)booleanreplace(K key, V oldValue, V value, long lifespan, TimeUnit unit)CompletableFuture<V>replaceAsync(K key, V value)CompletableFuture<V>replaceAsync(K key, V value, long lifespan, TimeUnit unit)CompletableFuture<Boolean>replaceAsync(K key, V oldValue, V newValue)CompletableFuture<Boolean>replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit unit)protected abstract voidset(K key, V value)This is intentionally a non-public method meant as an integration point for bytecode manipulation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.api.AsyncCache
clearAsync, computeAsync, computeAsync, computeAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresentAsync, computeIfPresentAsync, computeIfPresentAsync, containsKeyAsync, getAllAsync, getAsync, mergeAsync, mergeAsync, mergeAsync, putAllAsync, putAsync, putIfAbsentAsync, removeAsync, removeAsync, replaceAsync, replaceAsync, sizeAsync
-
Methods inherited from interface org.infinispan.commons.api.BasicCache
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, getName, getVersion, merge, put, putAll, putIfAbsent, remove, replace, replace
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, remove, replaceAll
-
-
-
-
Method Detail
-
set
protected abstract void set(K key, V value)
This is intentionally a non-public method meant as an integration point for bytecode manipulation. Don't remove or alter the signature even if it might look like unreachable code. Implementors should perform a put operation but optimizing it as return values are not required.- Since:
- 5.0
-
putAsync
public final CompletableFuture<V> putAsync(K key, V value)
-
putIfAbsent
public final V putIfAbsent(K key, V value)
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V>- Specified by:
putIfAbsentin interfaceMap<K,V>
-
putAsync
public final CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit unit)
-
putAllAsync
public final CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data)
-
putAllAsync
public final CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit unit)
-
putIfAbsentAsync
public final CompletableFuture<V> putIfAbsentAsync(K key, V value)
-
putIfAbsentAsync
public final CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit unit)
-
replaceAsync
public final CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit unit)
-
replaceAsync
public final CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue)
-
replaceAsync
public final CompletableFuture<V> replaceAsync(K key, V value)
-
replaceAsync
public final CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit unit)
-
merge
public final V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
-
-