org.infinispan.lock.impl.manager.CacheHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-clustered-lock Show documentation
Show all versions of infinispan-clustered-lock Show documentation
Infinispan Clustered Lock module
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 extends ClusteredLockKey, ClusteredLockValue> clusteredLockCache;
public CacheHolder(AdvancedCache extends ClusteredLockKey, ClusteredLockValue> 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