Package org.infinispan.hotrod.impl.cache
Class InvalidatedNearRemoteCache<K,V>
java.lang.Object
org.infinispan.hotrod.impl.cache.DelegatingRemoteCache<K,V>
org.infinispan.hotrod.impl.cache.InvalidatedNearRemoteCache<K,V>
- Type Parameters:
K-V-
- All Implemented Interfaces:
AutoCloseable,RemoteCache<K,V>
Near cache implementation enabling
-
Field Summary
Fields inherited from class org.infinispan.hotrod.impl.cache.DelegatingRemoteCache
delegate -
Method Summary
Modifier and TypeMethodDescriptionaddNearCacheListener(Object listener, int bloomBits) clear(org.infinispan.api.common.CacheOptions options) voidstatic <K,V> InvalidatedNearRemoteCache<K, V> delegatingNearCache(RemoteCacheImpl<K, V> remoteCache, NearCacheService<K, V> nearCacheService) CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getAndRemove(K key, org.infinispan.api.common.CacheOptions options) CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getOrReplaceEntry(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options) replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) voidsetBloomListenerAddress(SocketAddress socketAddress) setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) voidstart()voidstop()Methods inherited from class org.infinispan.hotrod.impl.cache.DelegatingRemoteCache
close, configuration, entries, estimateSize, getAll, getAll, getAndRemoveAll, getAndRemoveAll, getDataFormat, getEntry, getHotRodTransport, getName, getOperationsFactory, getTransactionManager, isTransactional, keyAsObjectIfNeeded, keys, keyToBytes, listen, process, processAll, publishEntries, publishEntriesByQuery, publishEntriesWithMetadata, putAll, removeAll, removeAll, resolveStorage, retrieveEntries, retrieveEntries, retrieveEntriesByQuery, retrieveEntriesWithMetadata, valueToBytes, withDataFormat
-
Method Details
-
delegatingNearCache
public static <K,V> InvalidatedNearRemoteCache<K,V> delegatingNearCache(RemoteCacheImpl<K, V> remoteCache, NearCacheService<K, V> nearCacheService) -
get
- Specified by:
getin interfaceRemoteCache<K,V> - Overrides:
getin classDelegatingRemoteCache<K,V>
-
getEntry
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getEntry(K key, org.infinispan.api.common.CacheOptions options) - Specified by:
getEntryin interfaceRemoteCache<K,V> - Overrides:
getEntryin classDelegatingRemoteCache<K,V>
-
put
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> put(K key, V value, org.infinispan.api.common.CacheWriteOptions options) - Specified by:
putin interfaceRemoteCache<K,V> - Overrides:
putin classDelegatingRemoteCache<K,V>
-
putIfAbsent
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) - Specified by:
putIfAbsentin interfaceRemoteCache<K,V> - Overrides:
putIfAbsentin classDelegatingRemoteCache<K,V>
-
setIfAbsent
public CompletionStage<Boolean> setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) - Specified by:
setIfAbsentin interfaceRemoteCache<K,V> - Overrides:
setIfAbsentin classDelegatingRemoteCache<K,V>
-
set
public CompletionStage<Void> set(K key, V value, org.infinispan.api.common.CacheWriteOptions options) - Specified by:
setin interfaceRemoteCache<K,V> - Overrides:
setin classDelegatingRemoteCache<K,V>
-
replace
public CompletionStage<Boolean> replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) - Specified by:
replacein interfaceRemoteCache<K,V> - Overrides:
replacein classDelegatingRemoteCache<K,V>
-
getOrReplaceEntry
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getOrReplaceEntry(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) - Specified by:
getOrReplaceEntryin interfaceRemoteCache<K,V> - Overrides:
getOrReplaceEntryin classDelegatingRemoteCache<K,V>
-
remove
- Specified by:
removein interfaceRemoteCache<K,V> - Overrides:
removein classDelegatingRemoteCache<K,V>
-
remove
public CompletionStage<Boolean> remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options) - Specified by:
removein interfaceRemoteCache<K,V> - Overrides:
removein classDelegatingRemoteCache<K,V>
-
getAndRemove
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getAndRemove(K key, org.infinispan.api.common.CacheOptions options) - Specified by:
getAndRemovein interfaceRemoteCache<K,V> - Overrides:
getAndRemovein classDelegatingRemoteCache<K,V>
-
clear
- Specified by:
clearin interfaceRemoteCache<K,V> - Overrides:
clearin classDelegatingRemoteCache<K,V>
-
putAll
public CompletionStage<Void> putAll(Map<K, V> entries, org.infinispan.api.common.CacheWriteOptions options) - Specified by:
putAllin interfaceRemoteCache<K,V> - Overrides:
putAllin classDelegatingRemoteCache<K,V>
-
start
public void start() -
stop
public void stop() -
clearNearCache
public void clearNearCache() -
updateBloomFilter
- Specified by:
updateBloomFilterin interfaceRemoteCache<K,V> - Overrides:
updateBloomFilterin classDelegatingRemoteCache<K,V>
-
getBloomListenerAddress
-
setBloomListenerAddress
-
addNearCacheListener
- Specified by:
addNearCacheListenerin interfaceRemoteCache<K,V> - Overrides:
addNearCacheListenerin classDelegatingRemoteCache<K,V>
-