All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.hotrod.HotRodAsyncMultiMaps Maven / Gradle / Ivy

There is a newer version: 14.0.32.Final
Show newest version
package org.infinispan.hotrod;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Flow;

import org.infinispan.api.async.AsyncMultiMap;
import org.infinispan.api.async.AsyncMultiMaps;
import org.infinispan.api.configuration.MultiMapConfiguration;

/**
 * @since 14.0
 **/
public class HotRodAsyncMultiMaps implements AsyncMultiMaps {
   private final HotRod hotrod;

   HotRodAsyncMultiMaps(HotRod hotrod) {
      this.hotrod = hotrod;
   }

   @Override
   public  CompletionStage> create(String name, MultiMapConfiguration cacheConfiguration) {
      return CompletableFuture.completedFuture(new HotRodAsyncMultiMap<>(hotrod, name)); // PLACEHOLDER
   }

   @Override
   public  CompletionStage> create(String name, String template) {
      return CompletableFuture.completedFuture(new HotRodAsyncMultiMap<>(hotrod, name)); // PLACEHOLDER
   }

   @Override
   public  CompletionStage> get(String name) {
      return CompletableFuture.completedFuture(new HotRodAsyncMultiMap<>(hotrod, name)); // PLACEHOLDER
   }

   @Override
   public CompletionStage remove(String name) {
      return null;
   }

   @Override
   public Flow.Publisher names() {
      return null;
   }

   @Override
   public CompletionStage createTemplate(String name, MultiMapConfiguration cacheConfiguration) {
      return null;
   }

   @Override
   public CompletionStage removeTemplate(String name) {
      return null;
   }

   @Override
   public Flow.Publisher templateNames() {
      return null;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy