List of usage examples for com.google.common.util.concurrent Striped lazyWeakReadWriteLock
public static Striped<ReadWriteLock> lazyWeakReadWriteLock(int stripes)
From source file:com.ignorelist.kassandra.steam.scraper.FileCache.java
public FileCache(Path cacheDirectory, CacheLoader<String, ? extends InputStream> valueLoader, long expireAfterMillis) { codec = new Base32(); stripedLock = Striped.lazyWeakReadWriteLock(4 * Runtime.getRuntime().availableProcessors()); this.cacheDirectory = cacheDirectory; this.valueLoader = valueLoader; this.expireAfterMillis = expireAfterMillis; }