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

org.infinispan.lock.impl.manager.CacheHolder Maven / Gradle / Ivy

There is a newer version: 15.1.1.Final
Show newest version
package org.infinispan.lock.impl.manager;

import org.infinispan.AdvancedCache;
import org.infinispan.context.Flag;
import org.infinispan.lock.impl.entries.ClusteredLockKey;
import org.infinispan.lock.impl.entries.ClusteredLockValue;

public class CacheHolder {
   private final AdvancedCache clusteredLockCache;

   public CacheHolder(AdvancedCache clusteredLockCache) {
      this.clusteredLockCache = clusteredLockCache;
   }

    AdvancedCache getClusteredLockCache() {
      //noinspection unchecked
      return (AdvancedCache) clusteredLockCache.withFlags(Flag.SKIP_CACHE_LOAD, Flag.SKIP_CACHE_STORE);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy