@ThreadSafe public interface CacheLockingManager extends ArtifactCacheMetaData, CacheAccess
| Modifier and Type | Method and Description |
|---|---|
<K,V> PersistentIndexedCache<K,V> |
createCache(File cacheFile,
Class<K> keyType,
Class<V> valueType)
Creates a cache implementation that is managed by this locking manager.
|
getCacheDirlongRunningOperation, longRunningOperation, useCache, useCache<K,V> PersistentIndexedCache<K,V> createCache(File cacheFile, Class<K> keyType, Class<V> valueType)
The returned cache may only be used by an action being run from CacheAccess.useCache(String, org.gradle.internal.Factory).
In this instance, an exclusive lock will be held on the cache.
The returned cache may not be used by an action being run from CacheAccess.longRunningOperation(String, org.gradle.internal.Factory).
Copyright © 2013. All rights reserved