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

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

The newest version!
package org.infinispan.hotrod;

import java.util.concurrent.CompletionStage;
import java.util.concurrent.TimeUnit;

import org.infinispan.api.async.AsyncLock;

/**
 * @since 14.0
 **/
public class HotRodAsyncLock implements AsyncLock {
   private final HotRod hotrod;
   private final String name;

   HotRodAsyncLock(HotRod hotrod, String name) {
      this.hotrod = hotrod;
      this.name = name;
   }

   @Override
   public String name() {
      return name;
   }

   @Override
   public HotRodAsyncContainer container() {
      return hotrod.async();
   }

   @Override
   public CompletionStage lock() {
      return null;
   }

   @Override
   public CompletionStage tryLock() {
      return null;
   }

   @Override
   public CompletionStage tryLock(long time, TimeUnit unit) {
      return null;
   }

   @Override
   public CompletionStage unlock() {
      return null;
   }

   @Override
   public CompletionStage isLocked() {
      return null;
   }

   @Override
   public CompletionStage isLockedByMe() {
      return null;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy