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

org.infinispan.hotrod.HotRodAsyncStrongCounters 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.AsyncStrongCounter;
import org.infinispan.api.async.AsyncStrongCounters;
import org.infinispan.api.configuration.CounterConfiguration;

/**
 * @since 14.0
 **/
public class HotRodAsyncStrongCounters implements AsyncStrongCounters {
   private final HotRod hotrod;

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

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

   @Override
   public CompletionStage create(String name, CounterConfiguration configuration) {
      return CompletableFuture.completedFuture(new HotRodAsyncStrongCounter(hotrod, name)); // PLACEHOLDER
   }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy