Package org.infinispan.jcache.remote
Class RemoteCacheWithCacheStore<K,V>
- java.lang.Object
-
- org.infinispan.jcache.remote.RemoteCacheWithCacheStore<K,V>
-
- All Implemented Interfaces:
ConcurrentMap<K,V>,Map<K,V>,org.infinispan.client.hotrod.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
public abstract class RemoteCacheWithCacheStore<K,V> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.infinispan.client.hotrod.RemoteCache<K,V>delegate
-
Constructor Summary
Constructors Constructor Description RemoteCacheWithCacheStore(org.infinispan.client.hotrod.RemoteCache<K,V> delegate, javax.cache.integration.CacheLoader<K,V> jcacheLoader, javax.cache.integration.CacheWriter<? super K,? super V> jcacheWriter, javax.cache.configuration.MutableConfiguration<K,V> configuration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddClientListener(Object listener)voidaddClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams)voidclear()CompletableFuture<Void>clearAsync()org.infinispan.client.hotrod.jmx.RemoteCacheClientStatisticsMXBeanclientStatistics()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)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)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)CompletableFuture<V>computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)booleancontainsKey(Object key)booleancontainsValue(Object value)org.infinispan.commons.util.CloseableIteratorSet<Map.Entry<K,V>>entrySet()org.infinispan.commons.util.CloseableIteratorSet<Map.Entry<K,V>>entrySet(org.infinispan.commons.util.IntSet segments)<T> Texecute(String scriptName, Map<String,?> params)<T> Texecute(String scriptName, Map<String,?> params, Object key)Vget(Object key)Map<K,V>getAll(Set<? extends K> keys)CompletableFuture<V>getAsync(K key)org.infinispan.client.hotrod.CacheTopologyInfogetCacheTopologyInfo()org.infinispan.client.hotrod.DataFormatgetDataFormat()Set<Object>getListeners()Deprecated.StringgetName()StringgetProtocolVersion()org.infinispan.client.hotrod.RemoteCacheManagergetRemoteCacheManager()StringgetVersion()org.infinispan.client.hotrod.MetadataValue<V>getWithMetadata(K key)CompletableFuture<org.infinispan.client.hotrod.MetadataValue<V>>getWithMetadataAsync(K key)booleanisEmpty()booleanisTransactional()org.infinispan.commons.util.CloseableIteratorSet<K>keySet()org.infinispan.commons.util.CloseableIteratorSet<K>keySet(org.infinispan.commons.util.IntSet segments)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)CompletableFuture<V>mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)protected abstract voidonLoad(K key, V value)<E> org.reactivestreams.Publisher<Map.Entry<K,E>>publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)<E> org.reactivestreams.Publisher<Map.Entry<K,E>>publishEntriesByQuery(org.infinispan.query.dsl.Query<?> filterQuery, Set<Integer> segments, int batchSize)org.reactivestreams.Publisher<Map.Entry<K,org.infinispan.client.hotrod.MetadataValue<V>>>publishEntriesWithMetadata(Set<Integer> segments, int batchSize)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> m)voidputAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit unit)voidputAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data)CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit unit)CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<V>putAsync(K key, V value)CompletableFuture<V>putAsync(K key, V value, long lifespan, TimeUnit unit)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 unit)CompletableFuture<V>putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)Vremove(Object key)booleanremove(Object key, Object oldValue)CompletableFuture<V>removeAsync(Object key)CompletableFuture<Boolean>removeAsync(Object key, Object value)voidremoveClientListener(Object listener)booleanremoveWithVersion(K key, long version)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)CompletableFuture<V>replaceAsync(K key, V value)CompletableFuture<V>replaceAsync(K key, V value, long lifespan, TimeUnit unit)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)CompletableFuture<Boolean>replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)booleanreplaceWithVersion(K key, V newValue, long version)booleanreplaceWithVersion(K key, V newValue, long version, int lifespanSeconds)booleanreplaceWithVersion(K key, V newValue, long version, int lifespanSeconds, int maxIdleTimeSeconds)booleanreplaceWithVersion(K key, V newValue, long version, long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)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)CompletableFuture<Boolean>replaceWithVersionAsync(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>>retrieveEntries(String filterConverterFactory, int batchSize)org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>>retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>>retrieveEntries(String filterConverterFactory, Set<Integer> segments, int batchSize)org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>>retrieveEntriesByQuery(org.infinispan.query.dsl.Query<?> filterQuery, Set<Integer> segments, int batchSize)org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,org.infinispan.client.hotrod.MetadataValue<Object>>>retrieveEntriesWithMetadata(Set<Integer> segments, int batchSize)org.infinispan.client.hotrod.ServerStatisticsserverStatistics()CompletionStage<org.infinispan.client.hotrod.ServerStatistics>serverStatisticsAsync()intsize()CompletableFuture<Long>sizeAsync()voidstart()org.infinispan.client.hotrod.ServerStatisticsstats()voidstop()org.infinispan.client.hotrod.StreamingRemoteCache<K>streaming()org.infinispan.commons.util.CloseableIteratorCollection<V>values()org.infinispan.commons.util.CloseableIteratorCollection<V>values(org.infinispan.commons.util.IntSet segments)org.infinispan.client.hotrod.RemoteCache<K,V>withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat)org.infinispan.client.hotrod.RemoteCache<K,V>withFlags(org.infinispan.client.hotrod.Flag... flags)-
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
containsKeyAsync, getAllAsync
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault, replaceAll
-
-
-
-
Constructor Detail
-
RemoteCacheWithCacheStore
public RemoteCacheWithCacheStore(org.infinispan.client.hotrod.RemoteCache<K,V> delegate, javax.cache.integration.CacheLoader<K,V> jcacheLoader, javax.cache.integration.CacheWriter<? super K,? super V> jcacheWriter, javax.cache.configuration.MutableConfiguration<K,V> configuration)
-
-
Method Detail
-
addClientListener
public void addClientListener(Object listener)
- Specified by:
addClientListenerin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
addClientListener
public void addClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams)
- Specified by:
addClientListenerin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
clearAsync
public CompletableFuture<Void> clearAsync()
- Specified by:
clearAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
public org.infinispan.commons.util.CloseableIteratorSet<Map.Entry<K,V>> entrySet()
-
entrySet
public org.infinispan.commons.util.CloseableIteratorSet<Map.Entry<K,V>> entrySet(org.infinispan.commons.util.IntSet segments)
- Specified by:
entrySetin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
getAll
public Map<K,V> getAll(Set<? extends K> keys)
- Specified by:
getAllin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
getAsync
public CompletableFuture<V> getAsync(K key)
- Specified by:
getAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
getWithMetadataAsync
public CompletableFuture<org.infinispan.client.hotrod.MetadataValue<V>> getWithMetadataAsync(K key)
- Specified by:
getWithMetadataAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
getListeners
@Deprecated public Set<Object> getListeners()
Deprecated.- Specified by:
getListenersin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
getProtocolVersion
public String getProtocolVersion()
- Specified by:
getProtocolVersionin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
getRemoteCacheManager
public org.infinispan.client.hotrod.RemoteCacheManager getRemoteCacheManager()
- Specified by:
getRemoteCacheManagerin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
getWithMetadata
public org.infinispan.client.hotrod.MetadataValue<V> getWithMetadata(K key)
- Specified by:
getWithMetadatain interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
keySet
public org.infinispan.commons.util.CloseableIteratorSet<K> keySet()
-
keySet
public org.infinispan.commons.util.CloseableIteratorSet<K> keySet(org.infinispan.commons.util.IntSet segments)
- Specified by:
keySetin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
put
public V put(K key, V value)
-
put
public V put(K key, V value, long lifespan, TimeUnit unit)- Specified by:
putin interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
put
public V put(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)- Specified by:
putin interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
putAll
public void putAll(Map<? extends K,? extends V> m)
-
putAll
public void putAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit unit)
- Specified by:
putAllin interfaceorg.infinispan.commons.api.BasicCache<K,V>- Specified by:
putAllin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
putAll
public void putAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
- Specified by:
putAllin interfaceorg.infinispan.commons.api.BasicCache<K,V>- Specified by:
putAllin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
putAllAsync
public CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data)
- Specified by:
putAllAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>- Specified by:
putAllAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
putAllAsync
public CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit unit)
- Specified by:
putAllAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>- Specified by:
putAllAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
putAllAsync
public CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
putAllAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>- Specified by:
putAllAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
putAsync
public CompletableFuture<V> putAsync(K key, V value)
- Specified by:
putAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
putAsync
public CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit unit)
- Specified by:
putAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
putAsync
public CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
putAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
putIfAbsent
public V putIfAbsent(K key, V value)- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V>- Specified by:
putIfAbsentin interfaceMap<K,V>
-
putIfAbsent
public V putIfAbsent(K key, V value, long lifespan, TimeUnit unit)- Specified by:
putIfAbsentin interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
putIfAbsent
public V putIfAbsent(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)- Specified by:
putIfAbsentin interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
putIfAbsentAsync
public CompletableFuture<V> putIfAbsentAsync(K key, V value)
- Specified by:
putIfAbsentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
putIfAbsentAsync
public CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit unit)
- Specified by:
putIfAbsentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
putIfAbsentAsync
public CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
putIfAbsentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
remove
public V remove(Object key)
-
remove
public boolean remove(Object key, Object oldValue)
- Specified by:
removein interfaceConcurrentMap<K,V>- Specified by:
removein interfaceMap<K,V>- Specified by:
removein interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
removeAsync
public CompletableFuture<V> removeAsync(Object key)
- Specified by:
removeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
removeAsync
public CompletableFuture<Boolean> removeAsync(Object key, Object value)
- Specified by:
removeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
removeClientListener
public void removeClientListener(Object listener)
- Specified by:
removeClientListenerin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
removeWithVersion
public boolean removeWithVersion(K key, long version)- Specified by:
removeWithVersionin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
removeWithVersionAsync
public CompletableFuture<Boolean> removeWithVersionAsync(K key, long version)
- Specified by:
removeWithVersionAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replace
public V replace(K key, V value)- Specified by:
replacein interfaceConcurrentMap<K,V>- Specified by:
replacein interfaceMap<K,V>
-
replace
public V replace(K key, V value, long lifespan, TimeUnit unit)- Specified by:
replacein interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
replace
public V replace(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)- Specified by:
replacein interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
replace
public boolean replace(K key, V oldValue, V newValue)- Specified by:
replacein interfaceConcurrentMap<K,V>- Specified by:
replacein interfaceMap<K,V>- Specified by:
replacein interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replace
public boolean replace(K key, V oldValue, V value, long lifespan, TimeUnit unit)- Specified by:
replacein interfaceorg.infinispan.commons.api.BasicCache<K,V>- Specified by:
replacein interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replace
public boolean replace(K key, V oldValue, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)- Specified by:
replacein interfaceorg.infinispan.commons.api.BasicCache<K,V>- Specified by:
replacein interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
compute
public V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)- Specified by:
computein interfaceConcurrentMap<K,V>- Specified by:
computein interfaceMap<K,V>
-
compute
public V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)- Specified by:
computein interfaceorg.infinispan.commons.api.BasicCache<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:
computein interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
computeIfPresent
public 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 V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)- Specified by:
computeIfPresentin interfaceorg.infinispan.commons.api.BasicCache<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:
computeIfPresentin interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
computeIfAbsent
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)- Specified by:
computeIfAbsentin interfaceConcurrentMap<K,V>- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfAbsent
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit)- Specified by:
computeIfAbsentin interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
computeIfAbsent
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)- Specified by:
computeIfAbsentin interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
merge
public V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)- Specified by:
mergein interfaceConcurrentMap<K,V>- Specified by:
mergein interfaceMap<K,V>
-
merge
public V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)- Specified by:
mergein interfaceorg.infinispan.commons.api.BasicCache<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:
mergein interfaceorg.infinispan.commons.api.BasicCache<K,V>
-
replaceAsync
public CompletableFuture<V> replaceAsync(K key, V value)
- Specified by:
replaceAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
replaceAsync
public CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit unit)
- Specified by:
replaceAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
replaceAsync
public CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
replaceAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
replaceAsync
public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue)
- Specified by:
replaceAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
replaceAsync
public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit unit)
- Specified by:
replaceAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
replaceAsync
public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
replaceAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
replaceWithVersion
public boolean replaceWithVersion(K key, V newValue, long version)- Specified by:
replaceWithVersionin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replaceWithVersion
public boolean replaceWithVersion(K key, V newValue, long version, int lifespanSeconds)- Specified by:
replaceWithVersionin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replaceWithVersion
public boolean replaceWithVersion(K key, V newValue, long version, int lifespanSeconds, int maxIdleTimeSeconds)- Specified by:
replaceWithVersionin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replaceWithVersion
public boolean replaceWithVersion(K key, V newValue, long version, long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)- Specified by:
replaceWithVersionin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replaceWithVersionAsync
public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version)
- Specified by:
replaceWithVersionAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replaceWithVersionAsync
public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds)
- Specified by:
replaceWithVersionAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replaceWithVersionAsync
public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds, int maxIdleSeconds)
- Specified by:
replaceWithVersionAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
replaceWithVersionAsync
public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
- Specified by:
replaceWithVersionAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
- Specified by:
computeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
- Specified by:
computeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
computeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
computeIfAbsentAsync
public CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction)
- Specified by:
computeIfAbsentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
computeIfAbsentAsync
public CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit)
- Specified by:
computeIfAbsentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
computeIfAbsentAsync
public CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
computeIfAbsentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
- Specified by:
computeIfPresentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit)
- Specified by:
computeIfPresentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
computeIfPresentAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
mergeAsync
public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
- Specified by:
mergeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<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:
mergeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
mergeAsync
public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
- Specified by:
mergeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
sizeAsync
public CompletableFuture<Long> sizeAsync()
- Specified by:
sizeAsyncin interfaceorg.infinispan.commons.api.AsyncCache<K,V>
-
start
public void start()
- Specified by:
startin interfaceorg.infinispan.commons.api.Lifecycle
-
stats
public org.infinispan.client.hotrod.ServerStatistics stats()
- Specified by:
statsin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
stop
public void stop()
- Specified by:
stopin interfaceorg.infinispan.commons.api.Lifecycle
-
values
public org.infinispan.commons.util.CloseableIteratorCollection<V> values()
-
values
public org.infinispan.commons.util.CloseableIteratorCollection<V> values(org.infinispan.commons.util.IntSet segments)
- Specified by:
valuesin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
withFlags
public org.infinispan.client.hotrod.RemoteCache<K,V> withFlags(org.infinispan.client.hotrod.Flag... flags)
- Specified by:
withFlagsin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
execute
public <T> T execute(String scriptName, Map<String,?> params)
- Specified by:
executein interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
execute
public <T> T execute(String scriptName, Map<String,?> params, Object key)
- Specified by:
executein interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
getCacheTopologyInfo
public org.infinispan.client.hotrod.CacheTopologyInfo getCacheTopologyInfo()
- Specified by:
getCacheTopologyInfoin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
retrieveEntries
public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>> retrieveEntries(String filterConverterFactory, Set<Integer> segments, int batchSize)
- Specified by:
retrieveEntriesin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
retrieveEntries
public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>> retrieveEntries(String filterConverterFactory, int batchSize)
- Specified by:
retrieveEntriesin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
retrieveEntries
public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>> retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)
- Specified by:
retrieveEntriesin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
publishEntries
public <E> org.reactivestreams.Publisher<Map.Entry<K,E>> publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)
- Specified by:
publishEntriesin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
retrieveEntriesByQuery
public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>> retrieveEntriesByQuery(org.infinispan.query.dsl.Query<?> filterQuery, Set<Integer> segments, int batchSize)
- Specified by:
retrieveEntriesByQueryin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
publishEntriesByQuery
public <E> org.reactivestreams.Publisher<Map.Entry<K,E>> publishEntriesByQuery(org.infinispan.query.dsl.Query<?> filterQuery, Set<Integer> segments, int batchSize)
- Specified by:
publishEntriesByQueryin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
retrieveEntriesWithMetadata
public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,org.infinispan.client.hotrod.MetadataValue<Object>>> retrieveEntriesWithMetadata(Set<Integer> segments, int batchSize)
- Specified by:
retrieveEntriesWithMetadatain interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
publishEntriesWithMetadata
public org.reactivestreams.Publisher<Map.Entry<K,org.infinispan.client.hotrod.MetadataValue<V>>> publishEntriesWithMetadata(Set<Integer> segments, int batchSize)
- Specified by:
publishEntriesWithMetadatain interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
withDataFormat
public org.infinispan.client.hotrod.RemoteCache<K,V> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat)
- Specified by:
withDataFormatin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
streaming
public org.infinispan.client.hotrod.StreamingRemoteCache<K> streaming()
- Specified by:
streamingin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
getDataFormat
public org.infinispan.client.hotrod.DataFormat getDataFormat()
- Specified by:
getDataFormatin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
clientStatistics
public org.infinispan.client.hotrod.jmx.RemoteCacheClientStatisticsMXBean clientStatistics()
- Specified by:
clientStatisticsin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
serverStatistics
public org.infinispan.client.hotrod.ServerStatistics serverStatistics()
- Specified by:
serverStatisticsin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
serverStatisticsAsync
public CompletionStage<org.infinispan.client.hotrod.ServerStatistics> serverStatisticsAsync()
- Specified by:
serverStatisticsAsyncin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
isTransactional
public boolean isTransactional()
- Specified by:
isTransactionalin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V>
-
-