Package org.infinispan.hotrod.impl.cache
Interface RemoteCache<K,V>
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DelegatingRemoteCache,InvalidatedNearRemoteCache,RemoteCacheImpl,TransactionalRemoteCacheImpl
public interface RemoteCache<K,V> extends AutoCloseable
- Since:
- 14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SocketAddressaddNearCacheListener(Object listener, int bloomFilterBits)CompletionStage<Void>clear(org.infinispan.api.common.CacheOptions options)CompletionStage<org.infinispan.api.configuration.CacheConfiguration>configuration()Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>>entries(org.infinispan.api.common.CacheOptions options)CompletionStage<Long>estimateSize(org.infinispan.api.common.CacheOptions options)CompletionStage<V>get(K key, org.infinispan.api.common.CacheOptions options)Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>>getAll(Set<K> keys, org.infinispan.api.common.CacheOptions options)Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>>getAll(org.infinispan.api.common.CacheOptions options, K[] keys)CompletionStage<org.infinispan.api.common.CacheEntry<K,V>>getAndRemove(K key, org.infinispan.api.common.CacheOptions options)Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>>getAndRemoveAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options)Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>>getAndRemoveAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options)DataFormatgetDataFormat()CompletionStage<org.infinispan.api.common.CacheEntry<K,V>>getEntry(K key, org.infinispan.api.common.CacheOptions options)RetryAwareCompletionStage<org.infinispan.api.common.CacheEntry<K,V>>getEntry(K key, org.infinispan.api.common.CacheOptions options, SocketAddress listenerAddress)HotRodTransportgetHotRodTransport()StringgetName()CacheOperationsFactorygetOperationsFactory()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)javax.transaction.TransactionManagergetTransactionManager()booleanisTransactional()KkeyAsObjectIfNeeded(Object key)Flow.Publisher<K>keys(org.infinispan.api.common.CacheOptions options)byte[]keyToBytes(Object o)Flow.Publisher<org.infinispan.api.common.events.cache.CacheEntryEvent<K,V>>listen(org.infinispan.api.common.events.cache.CacheListenerOptions options, org.infinispan.api.common.events.cache.CacheEntryEventType[] types)<T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K,T>>process(Set<K> keys, org.infinispan.api.async.AsyncCacheEntryProcessor<K,V,T> task, org.infinispan.api.common.CacheOptions options)<T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K,T>>processAll(org.infinispan.api.async.AsyncCacheEntryProcessor<K,V,T> processor, org.infinispan.api.common.process.CacheProcessorOptions options)<E> org.reactivestreams.Publisher<org.infinispan.api.common.CacheEntry<K,E>>publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)<E> org.reactivestreams.Publisher<org.infinispan.api.common.CacheEntry<K,E>>publishEntriesByQuery(RemoteQuery query, Set<Integer> segments, int batchSize)org.reactivestreams.Publisher<org.infinispan.api.common.CacheEntry<K,V>>publishEntriesWithMetadata(Set<Integer> segments, int batchSize)CompletionStage<org.infinispan.api.common.CacheEntry<K,V>>put(K key, V value, org.infinispan.api.common.CacheWriteOptions options)CompletionStage<Void>putAll(Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries, 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)Flow.Publisher<K>removeAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options)Flow.Publisher<K>removeAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options)CompletionStage<Boolean>replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options)voidresolveStorage(boolean objectStorage)org.infinispan.commons.util.CloseableIterator<org.infinispan.api.common.CacheEntry<Object,Object>>retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)default org.infinispan.commons.util.CloseableIterator<org.infinispan.api.common.CacheEntry<Object,Object>>retrieveEntries(String filterConverterFactory, Set<Integer> segments, int batchSize)org.infinispan.commons.util.CloseableIterator<org.infinispan.api.common.CacheEntry<Object,Object>>retrieveEntriesByQuery(RemoteQuery query, Set<Integer> segments, int batchSize)org.infinispan.commons.util.CloseableIterator<org.infinispan.api.common.CacheEntry<Object,Object>>retrieveEntriesWithMetadata(Set<Integer> segments, int batchSize)CompletionStage<Void>set(K key, V value, org.infinispan.api.common.CacheWriteOptions options)CompletionStage<Boolean>setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options)CompletionStage<Void>updateBloomFilter()byte[]valueToBytes(Object o)<T,U>
RemoteCache<T,U>withDataFormat(DataFormat newDataFormat)-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
configuration
CompletionStage<org.infinispan.api.configuration.CacheConfiguration> configuration()
-
getHotRodTransport
HotRodTransport getHotRodTransport()
-
getOperationsFactory
CacheOperationsFactory getOperationsFactory()
-
get
CompletionStage<V> get(K key, org.infinispan.api.common.CacheOptions options)
-
keyToBytes
byte[] keyToBytes(Object o)
-
valueToBytes
byte[] valueToBytes(Object o)
-
getEntry
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getEntry(K key, org.infinispan.api.common.CacheOptions options)
-
getEntry
RetryAwareCompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getEntry(K key, org.infinispan.api.common.CacheOptions options, SocketAddress listenerAddress)
-
putIfAbsent
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options)
-
setIfAbsent
CompletionStage<Boolean> setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options)
-
put
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> put(K key, V value, org.infinispan.api.common.CacheWriteOptions options)
-
set
CompletionStage<Void> set(K key, V value, org.infinispan.api.common.CacheWriteOptions options)
-
replace
CompletionStage<Boolean> replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options)
-
getOrReplaceEntry
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)
-
remove
CompletionStage<Boolean> remove(K key, org.infinispan.api.common.CacheOptions options)
-
remove
CompletionStage<Boolean> remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options)
-
getAndRemove
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getAndRemove(K key, org.infinispan.api.common.CacheOptions options)
-
keys
Flow.Publisher<K> keys(org.infinispan.api.common.CacheOptions options)
-
entries
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries(org.infinispan.api.common.CacheOptions options)
-
putAll
CompletionStage<Void> putAll(Map<K,V> entries, org.infinispan.api.common.CacheWriteOptions options)
-
putAll
CompletionStage<Void> putAll(Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries, org.infinispan.api.common.CacheWriteOptions options)
-
getAll
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAll(Set<K> keys, org.infinispan.api.common.CacheOptions options)
-
getAll
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAll(org.infinispan.api.common.CacheOptions options, K[] keys)
-
removeAll
Flow.Publisher<K> removeAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options)
-
removeAll
Flow.Publisher<K> removeAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options)
-
getAndRemoveAll
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAndRemoveAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options)
-
getAndRemoveAll
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAndRemoveAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options)
-
estimateSize
CompletionStage<Long> estimateSize(org.infinispan.api.common.CacheOptions options)
-
clear
CompletionStage<Void> clear(org.infinispan.api.common.CacheOptions options)
-
listen
Flow.Publisher<org.infinispan.api.common.events.cache.CacheEntryEvent<K,V>> listen(org.infinispan.api.common.events.cache.CacheListenerOptions options, org.infinispan.api.common.events.cache.CacheEntryEventType[] types)
-
process
<T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K,T>> process(Set<K> keys, org.infinispan.api.async.AsyncCacheEntryProcessor<K,V,T> task, org.infinispan.api.common.CacheOptions options)
-
processAll
<T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K,T>> processAll(org.infinispan.api.async.AsyncCacheEntryProcessor<K,V,T> processor, org.infinispan.api.common.process.CacheProcessorOptions options)
-
retrieveEntries
default org.infinispan.commons.util.CloseableIterator<org.infinispan.api.common.CacheEntry<Object,Object>> retrieveEntries(String filterConverterFactory, Set<Integer> segments, int batchSize)
-
retrieveEntries
org.infinispan.commons.util.CloseableIterator<org.infinispan.api.common.CacheEntry<Object,Object>> retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)
-
withDataFormat
<T,U> RemoteCache<T,U> withDataFormat(DataFormat newDataFormat)
-
resolveStorage
void resolveStorage(boolean objectStorage)
-
updateBloomFilter
CompletionStage<Void> updateBloomFilter()
-
addNearCacheListener
SocketAddress addNearCacheListener(Object listener, int bloomFilterBits)
-
getName
String getName()
-
getDataFormat
DataFormat getDataFormat()
-
publishEntries
<E> org.reactivestreams.Publisher<org.infinispan.api.common.CacheEntry<K,E>> publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)
-
retrieveEntriesByQuery
org.infinispan.commons.util.CloseableIterator<org.infinispan.api.common.CacheEntry<Object,Object>> retrieveEntriesByQuery(RemoteQuery query, Set<Integer> segments, int batchSize)
-
publishEntriesByQuery
<E> org.reactivestreams.Publisher<org.infinispan.api.common.CacheEntry<K,E>> publishEntriesByQuery(RemoteQuery query, Set<Integer> segments, int batchSize)
-
retrieveEntriesWithMetadata
org.infinispan.commons.util.CloseableIterator<org.infinispan.api.common.CacheEntry<Object,Object>> retrieveEntriesWithMetadata(Set<Integer> segments, int batchSize)
-
publishEntriesWithMetadata
org.reactivestreams.Publisher<org.infinispan.api.common.CacheEntry<K,V>> publishEntriesWithMetadata(Set<Integer> segments, int batchSize)
-
getTransactionManager
javax.transaction.TransactionManager getTransactionManager()
-
isTransactional
boolean isTransactional()
-
-