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 Details

    • 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)
    • keyAsObjectIfNeeded

      K keyAsObjectIfNeeded(Object key)
    • 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

      jakarta.transaction.TransactionManager getTransactionManager()
    • isTransactional

      boolean isTransactional()