Class HotRodAsyncCache<K,​V>

  • All Implemented Interfaces:
    org.infinispan.api.async.AsyncCache<K,​V>

    public class HotRodAsyncCache<K,​V>
    extends Object
    implements org.infinispan.api.async.AsyncCache<K,​V>
    Since:
    14.0
    • Method Detail

      • name

        public String name()
        Specified by:
        name in interface org.infinispan.api.async.AsyncCache<K,​V>
      • configuration

        public CompletionStage<org.infinispan.api.configuration.CacheConfiguration> configuration()
        Specified by:
        configuration in interface org.infinispan.api.async.AsyncCache<K,​V>
      • container

        public org.infinispan.api.async.AsyncContainer container()
        Specified by:
        container in interface org.infinispan.api.async.AsyncCache<K,​V>
      • get

        public CompletionStage<V> get​(K key,
                                      org.infinispan.api.common.CacheOptions options)
        Specified by:
        get in interface org.infinispan.api.async.AsyncCache<K,​V>
      • getEntry

        public CompletionStage<org.infinispan.api.common.CacheEntry<K,​V>> getEntry​(K key,
                                                                                         org.infinispan.api.common.CacheOptions options)
        Specified by:
        getEntry in interface org.infinispan.api.async.AsyncCache<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:
        putIfAbsent in interface org.infinispan.api.async.AsyncCache<K,​V>
      • setIfAbsent

        public CompletionStage<Boolean> setIfAbsent​(K key,
                                                    V value,
                                                    org.infinispan.api.common.CacheWriteOptions options)
        Specified by:
        setIfAbsent in interface org.infinispan.api.async.AsyncCache<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:
        put in interface org.infinispan.api.async.AsyncCache<K,​V>
      • set

        public CompletionStage<Void> set​(K key,
                                         V value,
                                         org.infinispan.api.common.CacheWriteOptions options)
        Specified by:
        set in interface org.infinispan.api.async.AsyncCache<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:
        replace in interface org.infinispan.api.async.AsyncCache<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:
        getOrReplaceEntry in interface org.infinispan.api.async.AsyncCache<K,​V>
      • remove

        public CompletionStage<Boolean> remove​(K key,
                                               org.infinispan.api.common.CacheOptions options)
        Specified by:
        remove in interface org.infinispan.api.async.AsyncCache<K,​V>
      • remove

        public CompletionStage<Boolean> remove​(K key,
                                               org.infinispan.api.common.CacheEntryVersion version,
                                               org.infinispan.api.common.CacheOptions options)
        Specified by:
        remove in interface org.infinispan.api.async.AsyncCache<K,​V>
      • getAndRemove

        public CompletionStage<org.infinispan.api.common.CacheEntry<K,​V>> getAndRemove​(K key,
                                                                                             org.infinispan.api.common.CacheOptions options)
        Specified by:
        getAndRemove in interface org.infinispan.api.async.AsyncCache<K,​V>
      • keys

        public Flow.Publisher<K> keys​(org.infinispan.api.common.CacheOptions options)
        Specified by:
        keys in interface org.infinispan.api.async.AsyncCache<K,​V>
      • entries

        public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,​V>> entries​(org.infinispan.api.common.CacheOptions options)
        Specified by:
        entries in interface org.infinispan.api.async.AsyncCache<K,​V>
      • putAll

        public CompletionStage<Void> putAll​(Map<K,​V> entries,
                                            org.infinispan.api.common.CacheWriteOptions options)
        Specified by:
        putAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • putAll

        public CompletionStage<Void> putAll​(Flow.Publisher<org.infinispan.api.common.CacheEntry<K,​V>> entries,
                                            org.infinispan.api.common.CacheWriteOptions options)
        Specified by:
        putAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • getAll

        public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,​V>> getAll​(Set<K> keys,
                                                                                      org.infinispan.api.common.CacheOptions options)
        Specified by:
        getAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • getAll

        public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,​V>> getAll​(org.infinispan.api.common.CacheOptions options,
                                                                                      K... keys)
        Specified by:
        getAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • removeAll

        public Flow.Publisher<K> removeAll​(Set<K> keys,
                                           org.infinispan.api.common.CacheWriteOptions options)
        Specified by:
        removeAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • removeAll

        public Flow.Publisher<K> removeAll​(Flow.Publisher<K> keys,
                                           org.infinispan.api.common.CacheWriteOptions options)
        Specified by:
        removeAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • getAndRemoveAll

        public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,​V>> getAndRemoveAll​(Set<K> keys,
                                                                                               org.infinispan.api.common.CacheWriteOptions options)
        Specified by:
        getAndRemoveAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • getAndRemoveAll

        public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,​V>> getAndRemoveAll​(Flow.Publisher<K> keys,
                                                                                               org.infinispan.api.common.CacheWriteOptions options)
        Specified by:
        getAndRemoveAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • estimateSize

        public CompletionStage<Long> estimateSize​(org.infinispan.api.common.CacheOptions options)
        Specified by:
        estimateSize in interface org.infinispan.api.async.AsyncCache<K,​V>
      • clear

        public CompletionStage<Void> clear​(org.infinispan.api.common.CacheOptions options)
        Specified by:
        clear in interface org.infinispan.api.async.AsyncCache<K,​V>
      • query

        public <R> org.infinispan.api.async.AsyncQuery<K,​V,​R> query​(String query,
                                                                                org.infinispan.api.common.CacheOptions options)
        Specified by:
        query in interface org.infinispan.api.async.AsyncCache<K,​V>
      • listen

        public 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)
        Specified by:
        listen in interface org.infinispan.api.async.AsyncCache<K,​V>
      • process

        public <T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K,​T>> process​(Set<K> keys,
                                                                                                                  org.infinispan.api.async.AsyncCacheEntryProcessor<K,​V,​T> processor,
                                                                                                                  org.infinispan.api.common.CacheOptions options)
        Specified by:
        process in interface org.infinispan.api.async.AsyncCache<K,​V>
      • processAll

        public <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)
        Specified by:
        processAll in interface org.infinispan.api.async.AsyncCache<K,​V>
      • streaming

        public org.infinispan.api.async.AsyncStreamingCache<K> streaming()
        Specified by:
        streaming in interface org.infinispan.api.async.AsyncCache<K,​V>