// TODO: Configuration is not used because we don't support any other mode for now. For that : ISPN-8413
@Override
   public boolean defineLock(String name, ClusteredLockConfiguration configuration) {
      // TODO: Configuration is not used because we don't support any other mode for now. For that : ISPN-8413
      CacheHolder cacheHolder = extractCacheHolder(cacheHolderFuture);
      cache = cacheHolder.getClusteredLockCache();
      ClusteredLockKey key = new ClusteredLockKey(ByteString.fromString(name));
      ClusteredLockValue clusteredLockValue = cache.putIfAbsent(key, ClusteredLockValue.INITIAL_STATE);
      locks.putIfAbsent(name, new ClusteredLockImpl(name, key, cache, this));
      return clusteredLockValue == null;
   }
@Override
public boolean defineLock(String name, ClusteredLockConfiguration configuration) {
// TODO: Configuration is not used because we don't support any other mode for now. For that : ISPN-8413
CacheHolder cacheHolder = extractCacheHolder(cacheHolderFuture);
cache = cacheHolder.getClusteredLockCache();
@Override
public boolean defineLock(String name, ClusteredLockConfiguration configuration) {
// TODO: Configuration is not used because we don't support any other mode for now. For that : ISPN-8413
CacheHolder cacheHolder = extractCacheHolder(cacheHolderFuture);
cache = cacheHolder.getClusteredLockCache();
ClusteredLockKey key = new ClusteredLockKey(ByteString.fromString(name));
ClusteredLockValue clusteredLockValue = cache.putIfAbsent(key, ClusteredLockValue.INITIAL_STATE);
locks.putIfAbsent(name, new ClusteredLockImpl(name, key, cache, this));
return clusteredLockValue == null;
}
@Override
public boolean defineLock(String name, ClusteredLockConfiguration configuration) {
// TODO: Configuration is not used because we don't support any other mode for now. For that : ISPN-8413
CacheHolder cacheHolder = extractCacheHolder(cacheHolderFuture);
cache = cacheHolder.getClusteredLockCache();
ClusteredLockKey key = new ClusteredLockKey(ByteString.fromString(name));
ClusteredLockValue clusteredLockValue = cache.putIfAbsent(key, ClusteredLockValue.INITIAL_STATE);
locks.putIfAbsent(name, new ClusteredLockImpl(name, key, cache, this));
return clusteredLockValue == null;
}