Class RemoteCacheSupport<K,V>
- java.lang.Object
-
- org.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
-
- All Implemented Interfaces:
ConcurrentMap<K,V>,Map<K,V>,RemoteCache<K,V>,org.infinispan.commons.api.AsyncCache<K,V>,org.infinispan.commons.api.BasicCache<K,V>,org.infinispan.commons.api.Lifecycle,org.infinispan.commons.api.TransactionalCache
- Direct Known Subclasses:
DelegatingRemoteCache,RemoteCacheImpl
public abstract class RemoteCacheSupport<K,V> extends Object implements RemoteCache<K,V>
Purpose: keep all delegating and unsupported methods in one place -> readability.- 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 protectedRemoteCacheSupport()protectedRemoteCacheSupport(long defaultLifespan, long defaultMaxIdleTime)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()Vcompute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)Vcompute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)Vcompute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)CompletableFuture<V>computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)CompletableFuture<V>computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)abstract CompletableFuture<V>computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)VcomputeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)VcomputeIfAbsent(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit)VcomputeIfAbsent(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)CompletableFuture<V>computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction)CompletableFuture<V>computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit)abstract CompletableFuture<V>computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)VcomputeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)VcomputeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)VcomputeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)CompletableFuture<V>computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)CompletableFuture<V>computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)abstract CompletableFuture<V>computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)booleancontainsKey(Object key)abstract CompletableFuture<Boolean>containsKeyAsync(K key)Vget(Object key)Map<K,V>getAll(Set<? extends K> keys)Retrieves all of the entries for the provided keys.abstract CompletableFuture<Map<K,V>>getAllAsync(Set<?> keys)abstract CompletableFuture<V>getAsync(K key)MetadataValue<V>getWithMetadata(K key)Returns theMetadataValueassociated to the supplied key param, or null if it doesn't exist.abstract CompletableFuture<MetadataValue<V>>getWithMetadataAsync(K key)Asynchronously returns theMetadataValueassociated to the supplied key param, or null if it doesn't exist.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)Vmerge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)CompletableFuture<V>mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)CompletableFuture<V>mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)abstract CompletableFuture<V>mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)Vput(K key, V value)Vput(K key, V value, long lifespan, TimeUnit unit)Vput(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)voidputAll(Map<? extends K,? extends V> map)Adds or overrides each specified entry in the remote cache.voidputAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit unit)Adds or overrides each specified entry in the remote cache.voidputAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)Adds or overrides each specified entry in the remote cache.CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data)Adds or overrides each specified entry in the remote cache.CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit unit)Adds or overrides each specified entry in the remote cache.abstract CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)Adds or overrides each specified entry in the remote cache.CompletableFuture<V>putAsync(K key, V value)CompletableFuture<V>putAsync(K key, V value, long lifespan, TimeUnit unit)abstract CompletableFuture<V>putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)VputIfAbsent(K key, V value)VputIfAbsent(K key, V value, long lifespan, TimeUnit unit)VputIfAbsent(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)CompletableFuture<V>putIfAbsentAsync(K key, V value)CompletableFuture<V>putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit)abstract CompletableFuture<V>putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)Vremove(Object key)booleanremove(Object key, Object value)abstract CompletableFuture<V>removeAsync(Object key)abstract CompletableFuture<Boolean>removeAsync(Object key, Object value)booleanremoveWithVersion(K key, long version)Removes the given entry only if its version matches the supplied version.abstract CompletableFuture<Boolean>removeWithVersionAsync(K key, long version)Vreplace(K key, V value)Vreplace(K key, V value, long lifespan, TimeUnit unit)Vreplace(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)booleanreplace(K key, V oldValue, V newValue)booleanreplace(K key, V oldValue, V value, long lifespan, TimeUnit unit)booleanreplace(K key, V oldValue, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)abstract voidreplaceAll(BiFunction<? super K,? super V,? extends V> function)CompletableFuture<V>replaceAsync(K key, V value)CompletableFuture<V>replaceAsync(K key, V value, long lifespan, TimeUnit unit)abstract CompletableFuture<V>replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<Boolean>replaceAsync(K key, V oldValue, V newValue)CompletableFuture<Boolean>replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit unit)abstract CompletableFuture<Boolean>replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)booleanreplaceWithVersion(K key, V newValue, long version)Replaces the given value only if its version matches the supplied version.booleanreplaceWithVersion(K key, V newValue, long version, int lifespanSeconds)A overloaded form ofRemoteCache.replaceWithVersion(Object, Object, long)which takes in lifespan parameters.booleanreplaceWithVersion(K key, V newValue, long version, int lifespanSeconds, int maxIdleTimeSeconds)A overloaded form ofRemoteCache.replaceWithVersion(Object, Object, long)which takes in lifespan and maximum idle time parameters.booleanreplaceWithVersion(K key, V newValue, long version, long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)A overloaded form ofRemoteCache.replaceWithVersion(Object, Object, long)which takes in lifespan and maximum idle time parameters.CompletableFuture<Boolean>replaceWithVersionAsync(K key, V newValue, long version)CompletableFuture<Boolean>replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds)CompletableFuture<Boolean>replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds, int maxIdleSeconds)intsize()abstract CompletableFuture<Long>sizeAsync()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault
-
Methods inherited from interface java.util.Map
containsValue, equals, hashCode, isEmpty
-
Methods inherited from interface org.infinispan.client.hotrod.RemoteCache
addClientListener, addClientListener, clientStatistics, entrySet, entrySet, execute, execute, execute, getCacheTopologyInfo, getDataFormat, getListeners, getProtocolVersion, getRemoteCacheManager, isTransactional, keySet, keySet, publishEntries, publishEntriesByQuery, publishEntriesWithMetadata, removeClientListener, replaceWithVersionAsync, retrieveEntries, retrieveEntries, retrieveEntries, retrieveEntriesByQuery, retrieveEntriesWithMetadata, serverStatistics, serverStatisticsAsync, stats, streaming, values, values, withDataFormat, withFlags
-
-
-
-
Method Detail
-
putAll
public final void putAll(Map<? extends K,? extends V> map)
Description copied from interface:RemoteCacheAdds or overrides each specified entry in the remote cache. This operation provides better performance than calling put() for each entry.- Specified by:
putAllin interfaceMap<K,V>- Specified by:
putAllin interfaceRemoteCache<K,V>- See Also:
RemoteCache.putAll(java.util.Map, long, java.util.concurrent.TimeUnit)
-
putAll
public final void putAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit unit)
Description copied from interface:RemoteCacheAdds or overrides each specified entry in the remote cache. This operation provides better performance than calling put() for each entry.
-
putAll
public final void putAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
Description copied from interface:RemoteCacheAdds or overrides each specified entry in the remote cache. This operation provides better performance than calling put() for each entry.- Specified by:
putAllin interfaceorg.infinispan.commons.api.BasicCache<K,V>- Specified by:
putAllin interfaceRemoteCache<K,V>- See Also:
RemoteCache.putAll(java.util.Map, long, java.util.concurrent.TimeUnit)
-
putAllAsync
public final CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data)
Description copied from interface:RemoteCacheAdds or overrides each specified entry in the remote cache. This operation provides better performance than calling put() for each entry.- Specified by:
putAllAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>- Specified by:
putAllAsyncin interfaceRemoteCache<K,V>- See Also:
RemoteCache.putAll(java.util.Map, long, java.util.concurrent.TimeUnit)
-
putAllAsync
public final CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit unit)
Description copied from interface:RemoteCacheAdds or overrides each specified entry in the remote cache. This operation provides better performance than calling put() for each entry.- Specified by:
putAllAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>- Specified by:
putAllAsyncin interfaceRemoteCache<K,V>- See Also:
RemoteCache.putAll(java.util.Map, long, java.util.concurrent.TimeUnit)
-
putAllAsync
public abstract CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
Description copied from interface:RemoteCacheAdds or overrides each specified entry in the remote cache. This operation provides better performance than calling put() for each entry.- Specified by:
putAllAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>- Specified by:
putAllAsyncin interfaceRemoteCache<K,V>- See Also:
RemoteCache.putAll(java.util.Map, long, java.util.concurrent.TimeUnit)
-
putIfAbsent
public final V putIfAbsent(K key, V value)
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V>- Specified by:
putIfAbsentin interfaceMap<K,V>
-
putIfAbsent
public final V putIfAbsent(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-
putIfAbsentAsync
public final CompletableFuture<V> putIfAbsentAsync(K key, V value)
-
putIfAbsentAsync
public final CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit)
-
putIfAbsentAsync
public abstract CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
replace
public final boolean replace(K key, V oldValue, V newValue)
Description copied from interface:RemoteCacheThis method requires 2 round trips to the server. The first to retrieve the value and version and a second to replace the key with the version if the value matches. If possible user should use
RemoteCache.getWithMetadata(Object)andRemoteCache.replaceWithVersion(Object, Object, long).
-
replace
public final boolean replace(K key, V oldValue, V value, long lifespan, TimeUnit unit)
Description copied from interface:RemoteCacheThis method requires 2 round trips to the server. The first to retrieve the value and version and a second to replace the key with the version if the value matches. If possible user should use
RemoteCache.getWithMetadata(Object)andRemoteCache.replaceWithVersion(Object, Object, long, long, TimeUnit, long, TimeUnit).
-
replace
public final boolean replace(K key, V oldValue, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
Description copied from interface:RemoteCacheThis method requires 2 round trips to the server. The first to retrieve the value and version and a second to replace the key with the version if the value matches. If possible user should use
RemoteCache.getWithMetadata(Object)andRemoteCache.replaceWithVersion(Object, Object, long, long, TimeUnit, long, TimeUnit)if possible.
-
replaceAsync
public final CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue)
-
replaceAsync
public final CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit unit)
-
replaceAsync
public abstract CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
replace
public final V replace(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-
replaceAsync
public final CompletableFuture<V> replaceAsync(K key, V value)
-
replaceAsync
public final CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit unit)
-
replaceAsync
public abstract CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
getAsync
public abstract CompletableFuture<V> getAsync(K key)
-
getAll
public final Map<K,V> getAll(Set<? extends K> keys)
Description copied from interface:RemoteCacheRetrieves all of the entries for the provided keys. A key will not be present in the resulting map if the entry was not found in the cache.- Specified by:
getAllin interfaceRemoteCache<K,V>- Parameters:
keys- The keys to find values for- Returns:
- The entries that were present for the given keys
-
getAllAsync
public abstract CompletableFuture<Map<K,V>> getAllAsync(Set<?> keys)
-
getWithMetadata
public final MetadataValue<V> getWithMetadata(K key)
Description copied from interface:RemoteCacheReturns theMetadataValueassociated to the supplied key param, or null if it doesn't exist.- Specified by:
getWithMetadatain interfaceRemoteCache<K,V>
-
getWithMetadataAsync
public abstract CompletableFuture<MetadataValue<V>> getWithMetadataAsync(K key)
Description copied from interface:RemoteCacheAsynchronously returns theMetadataValueassociated to the supplied key param, or null if it doesn't exist.- Specified by:
getWithMetadataAsyncin interfaceRemoteCache<K,V>
-
containsKey
public final boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsKeyAsync
public abstract CompletableFuture<Boolean> containsKeyAsync(K key)
-
put
public final V put(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-
putAsync
public final CompletableFuture<V> putAsync(K key, V value)
-
putAsync
public final CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit unit)
-
putAsync
public abstract CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
replaceWithVersion
public final boolean replaceWithVersion(K key, V newValue, long version)
Description copied from interface:RemoteCacheReplaces the given value only if its version matches the supplied version. SeeRemoteCache.removeWithVersion(Object, long)for a sample usage of the version-based methods.- Specified by:
replaceWithVersionin interfaceRemoteCache<K,V>version- numeric version that should match the one in the server for the operation to succeed- Returns:
- true if the value has been replaced
- See Also:
RemoteCache.getWithMetadata(Object),VersionedValue
-
replaceWithVersion
public final boolean replaceWithVersion(K key, V newValue, long version, int lifespanSeconds)
Description copied from interface:RemoteCacheA overloaded form ofRemoteCache.replaceWithVersion(Object, Object, long)which takes in lifespan parameters.- Specified by:
replaceWithVersionin interfaceRemoteCache<K,V>- Parameters:
key- key to usenewValue- new value to be associated with the keyversion- numeric version that should match the one in the server for the operation to succeedlifespanSeconds- lifespan of the entry- Returns:
- true if the value was replaced
-
replaceWithVersion
public final boolean replaceWithVersion(K key, V newValue, long version, int lifespanSeconds, int maxIdleTimeSeconds)
Description copied from interface:RemoteCacheA overloaded form ofRemoteCache.replaceWithVersion(Object, Object, long)which takes in lifespan and maximum idle time parameters.- Specified by:
replaceWithVersionin interfaceRemoteCache<K,V>- Parameters:
key- key to usenewValue- new value to be associated with the keyversion- numeric version that should match the one in the server for the operation to succeedlifespanSeconds- lifespan of the entrymaxIdleTimeSeconds- the maximum amount of time this key is allowed to be idle for before it is considered as expired- Returns:
- true if the value was replaced
-
replaceWithVersion
public final boolean replaceWithVersion(K key, V newValue, long version, long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
Description copied from interface:RemoteCacheA overloaded form ofRemoteCache.replaceWithVersion(Object, Object, long)which takes in lifespan and maximum idle time parameters.- Specified by:
replaceWithVersionin interfaceRemoteCache<K,V>- Parameters:
key- key to usenewValue- new value to be associated with the keyversion- numeric version that should match the one in the server for the operation to succeedlifespan- lifespan of the entrylifespanTimeUnit-TimeUnitfor lifespanmaxIdle- the maximum amount of time this key is allowed to be idle for before it is considered as expiredmaxIdleTimeUnit-TimeUnitfor maxIdle- Returns:
- true if the value was replaced
-
replaceWithVersionAsync
public final CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version)
- Specified by:
replaceWithVersionAsyncin interfaceRemoteCache<K,V>- See Also:
RemoteCache.replaceWithVersion(Object, Object, long)
-
replaceWithVersionAsync
public final CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds)
- Specified by:
replaceWithVersionAsyncin interfaceRemoteCache<K,V>- See Also:
RemoteCache.replaceWithVersion(Object, Object, long)
-
replaceWithVersionAsync
public final CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds, int maxIdleSeconds)
- Specified by:
replaceWithVersionAsyncin interfaceRemoteCache<K,V>- See Also:
RemoteCache.replaceWithVersion(Object, Object, long)
-
remove
public final V remove(Object key)
Description copied from interface:RemoteCacheThe returned value is only sent back if
Flag.FORCE_RETURN_VALUEis enabled.
-
removeAsync
public abstract CompletableFuture<V> removeAsync(Object key)
-
remove
public final boolean remove(Object key, Object value)
Description copied from interface:RemoteCacheThis method requires 2 round trips to the server. The first to retrieve the value and version and a second to remove the key with the version if the value matches. If possible user should use
RemoteCache.getWithMetadata(Object)andRemoteCache.removeWithVersion(Object, long).
-
removeAsync
public abstract CompletableFuture<Boolean> removeAsync(Object key, Object value)
-
removeWithVersion
public final boolean removeWithVersion(K key, long version)
Description copied from interface:RemoteCacheRemoves the given entry only if its version matches the supplied version. A typical use case looks like this:VersionedEntry ve = remoteCache.getVersioned(key); //some processing remoteCache.removeWithVersion(key, ve.getVersion();
Lat call (removeWithVersion) will make sure that the entry will only be removed if it hasn't been changed in between.- Specified by:
removeWithVersionin interfaceRemoteCache<K,V>- Returns:
- true if the entry has been removed
- See Also:
VersionedValue,RemoteCache.getWithMetadata(Object)
-
removeWithVersionAsync
public abstract CompletableFuture<Boolean> removeWithVersionAsync(K key, long version)
- Specified by:
removeWithVersionAsyncin interfaceRemoteCache<K,V>- See Also:
RemoteCache.remove(Object, Object)
-
merge
public final V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
-
merge
public final V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
-
merge
public final V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-
mergeAsync
public final CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
-
mergeAsync
public final CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
-
mergeAsync
public abstract CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-
compute
public final V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
-
compute
public final V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
-
compute
public final V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-
computeAsync
public final CompletableFuture<V> computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
-
computeAsync
public final CompletableFuture<V> computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
-
computeAsync
public abstract CompletableFuture<V> computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
computeIfAbsent
public final V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
- Specified by:
computeIfAbsentin interfaceConcurrentMap<K,V>- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfAbsent
public final V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit)
-
computeIfAbsent
public final V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-
computeIfAbsentAsync
public final CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction)
-
computeIfAbsentAsync
public final CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit)
-
computeIfAbsentAsync
public abstract CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
computeIfPresent
public final V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
- Specified by:
computeIfPresentin interfaceConcurrentMap<K,V>- Specified by:
computeIfPresentin interfaceMap<K,V>
-
computeIfPresent
public final V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
-
computeIfPresent
public final V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
-
computeIfPresentAsync
public final CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
-
computeIfPresentAsync
public final CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
-
computeIfPresentAsync
public abstract CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
replaceAll
public abstract void replaceAll(BiFunction<? super K,? super V,? extends V> function)
- Specified by:
replaceAllin interfaceConcurrentMap<K,V>- Specified by:
replaceAllin interfaceMap<K,V>
-
sizeAsync
public abstract CompletableFuture<Long> sizeAsync()
-
-