org.infinispan.client.hotrod.multimap.RemoteMultimapCache Maven / Gradle / Ivy
package org.infinispan.client.hotrod.multimap;
import java.util.concurrent.CompletableFuture;
import org.infinispan.multimap.api.BasicMultimapCache;
/**
* {@inheritDoc}
*
* Remote MultimapCache interface used for server mode.
*
* @author Katia Aresti, [email protected]
* @see Infinispan documentation
* @since 9.2
*/
public interface RemoteMultimapCache extends BasicMultimapCache {
/**
* Returns a {@link MetadataCollection} of the values associated with key in this multimap cache,
* if any. Any changes to the retrieved collection won't change the values in this multimap cache.
* When this method returns an empty metadata collection, it means the key was not found.
*
* @param key to be retrieved
* @return the collection with the metadata of the given key
*/
CompletableFuture> getWithMetadata(K key);
}