Interface MultimapCache<K,​V>

    • Method Detail

      • getEntry

        CompletableFuture<Optional<org.infinispan.container.entries.CacheEntry<K,​Collection<V>>>> getEntry​(K key)
        Retrieves a CacheEntry corresponding to a specific key in this multimap cache.
        Parameters:
        key - the key whose associated cache entry is to be returned
        Returns:
        the cache entry to which the specified key is mapped, or Optional.empty() if this multimap contains no mapping for the key
        Since:
        9.2
      • remove

        CompletableFuture<Void> remove​(Predicate<? super V> p)
        Asynchronous method. Removes every value that match the Predicate.

        This method is blocking used in a explicit transaction context.

        Parameters:
        p - the predicate to be tested on every value in this multimap cache
        Returns:
        CompletableFuture containing a Void
        Since:
        9.2
      • remove

        default CompletableFuture<Void> remove​(org.infinispan.util.function.SerializablePredicate<? super V> p)
        Overloaded method of remove(Predicate) with SerializablePredicate. The compiler will pick up this method and make the given predicate Serializable.
        Parameters:
        p - the predicate to be tested on every value in this multimap cache
        Returns:
        CompletableFuture containing a Void
        Since:
        9.2