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

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

package org.infinispan.hotrod;

import org.infinispan.api.configuration.LockConfiguration;
import org.infinispan.api.mutiny.MutinyLock;
import org.infinispan.api.mutiny.MutinyLocks;

import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;

/**
 * @since 14.0
 **/
public class HotRodMutinyLocks implements MutinyLocks {
   private final HotRod hotrod;

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

   @Override
   public Uni lock(String name) {
      return Uni.createFrom().item(new HotRodMutinyLock(hotrod, name));
   }

   @Override
   public Uni create(String name, LockConfiguration configuration) {
      return Uni.createFrom().item(new HotRodMutinyLock(hotrod, name));
   }

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

   @Override
   public Multi names() {
      return null;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy