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>
public class InvalidatedNearRemoteCache<K,V> extends DelegatingRemoteCache<K,V>
Near cache implementation enabling
-
-
Field Summary
-
Fields inherited from class org.infinispan.hotrod.impl.cache.DelegatingRemoteCache
delegate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketAddressaddNearCacheListener(Object listener, int bloomBits)CompletionStage<Void>clear(org.infinispan.api.common.CacheOptions options)voidclearNearCache()static <K,V>
InvalidatedNearRemoteCache<K,V>delegatingNearCache(RemoteCacheImpl<K,V> remoteCache, NearCacheService<K,V> nearCacheService)CompletionStage<V>get(K key, org.infinispan.api.common.CacheOptions options)CompletionStage<org.infinispan.api.common.CacheEntry<K,V>>getAndRemove(K key, org.infinispan.api.common.CacheOptions options)SocketAddressgetBloomListenerAddress()CompletionStage<org.infinispan.api.common.CacheEntry<K,V>>getEntry(K key, org.infinispan.api.common.CacheOptions options)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>>put(K key, V value, org.infinispan.api.common.CacheWriteOptions options)CompletionStage<Void>putAll(Map<K,V> entries, org.infinispan.api.common.CacheWriteOptions options)CompletionStage<org.infinispan.api.common.CacheEntry<K,V>>putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options)CompletionStage<Boolean>remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options)CompletionStage<Boolean>remove(K key, org.infinispan.api.common.CacheOptions options)CompletionStage<Boolean>replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options)CompletionStage<Void>set(K key, V value, org.infinispan.api.common.CacheWriteOptions options)voidsetBloomListenerAddress(SocketAddress socketAddress)CompletionStage<Boolean>setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options)voidstart()voidstop()CompletionStage<Void>updateBloomFilter()-
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 Detail
-
delegatingNearCache
public static <K,V> InvalidatedNearRemoteCache<K,V> delegatingNearCache(RemoteCacheImpl<K,V> remoteCache, NearCacheService<K,V> nearCacheService)
-
get
public CompletionStage<V> get(K key, org.infinispan.api.common.CacheOptions options)
- 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
public CompletionStage<Boolean> remove(K key, org.infinispan.api.common.CacheOptions options)
- 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
public CompletionStage<Void> clear(org.infinispan.api.common.CacheOptions options)
- 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
public CompletionStage<Void> updateBloomFilter()
- Specified by:
updateBloomFilterin interfaceRemoteCache<K,V>- Overrides:
updateBloomFilterin classDelegatingRemoteCache<K,V>
-
getBloomListenerAddress
public SocketAddress getBloomListenerAddress()
-
setBloomListenerAddress
public void setBloomListenerAddress(SocketAddress socketAddress)
-
addNearCacheListener
public SocketAddress addNearCacheListener(Object listener, int bloomBits)
- Specified by:
addNearCacheListenerin interfaceRemoteCache<K,V>- Overrides:
addNearCacheListenerin classDelegatingRemoteCache<K,V>
-
-