org.infinispan.api.async.AsyncMultimap Maven / Gradle / Ivy
The newest version!
package org.infinispan.api.async;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Flow;
import org.infinispan.api.configuration.MultimapConfiguration;
/**
* @since 14.0
**/
public interface AsyncMultimap {
/**
* The name of this multimap
*
* @return
*/
String name();
/**
* The configuration of this multimap
*
* @return
*/
CompletionStage configuration();
/**
* Return the container of this Multimap
*
* @return
*/
AsyncContainer container();
CompletionStage add(K key, V value);
Flow.Publisher get(K key);
CompletionStage remove(K key);
CompletionStage remove(K key, V value);
CompletionStage containsKey(K key);
CompletionStage containsEntry(K key, V value);
CompletionStage estimateSize();
}