- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 80 for LockMode (0.11 sec)
-
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/PersistentCache.java
* while it is in use. You can change this use {@link CacheBuilder#withInitialLockMode(org.gradle.cache.FileLockManager.LockMode)}. * * <p>You can use {@link CacheBuilder#withInitializer(java.util.function.Consumer)} to provide an action to initialize the contents
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 19 07:59:23 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/workspace/impl/CacheBasedImmutableWorkspaceProvider.java
// and move them atomically into the cache // TODO Should use a read-write lock on the cache's base directory for cleanup, though .withInitialLockMode(FileLockManager.LockMode.None) .open(); this.cache = cache; this.baseDirectory = cache.getBaseDir();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:51:31 UTC 2024 - 5.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessIntegrationTest.groovy
return count < 4 } void initialize(FileLock fileLock) {} } def lockOptions = DefaultLockOptions.mode(FileLockManager.LockMode.Shared) def lockManager1 = DefaultFileLockManagerTestHelper.createDefaultFileLockManager(100) new FixedSharedModeCrossProcessCacheAccess("<cache>", cacheDir, lockOptions, lockManager1, countingInitAction, {}, {})
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 4.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCacheServiceFactory.java
import org.gradle.internal.time.TimestampSuppliers; import javax.inject.Inject; import java.io.File; import java.util.function.Supplier; import static org.gradle.cache.FileLockManager.LockMode.OnDemand; public class DirectoryBuildCacheServiceFactory implements BuildCacheServiceFactory<DirectoryBuildCache> { public static final String FAILED_READ_SUFFIX = ".failed";
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 18:35:55 UTC 2024 - 6.3K bytes - Viewed (0) -
platforms/software/version-control/src/main/java/org/gradle/vcs/internal/services/DefaultVersionControlRepositoryFactory.java
this.vcsWorkingDirCache = cacheBuilderFactory .createCrossVersionCacheBuilder("vcs-1") .withInitialLockMode(FileLockManager.LockMode.OnDemand) .withDisplayName("VCS Checkout Cache") .withCleanupStrategy(createCacheCleanupStrategy()) .open(); } private CacheCleanupStrategy createCacheCleanupStrategy() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 18:35:55 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ReadOnlyArtifactCacheLockingAccessCoordinator.java
cache = unscopedCacheBuilderFactory .cache(cacheMetaData.getCacheDir()) .withDisplayName("read only artifact cache") .withInitialLockMode(FileLockManager.LockMode.None) // Don't need to lock anything, it's read-only .open(); } @Override public void close() { cache.close(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 6K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/WritableArtifactCacheLockingAccessCoordinator.java
cache = unscopedCacheBuilderFactory .cache(cacheMetaData.getCacheDir()) .withDisplayName("artifact cache") .withInitialLockMode(FileLockManager.LockMode.OnDemand) // Don't need to lock anything until we use the caches .withCleanupStrategy(createCacheCleanupStrategy(cacheMetaData, fileAccessTimeJournal, usedGradleVersions, cacheConfigurations)) .open();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 7.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/service/scopes/ExecutionGradleServices.java
.createCrossVersionCacheBuilder("buildOutputCleanup") .withDisplayName("Build Output Cleanup Cache") .withInitialLockMode(FileLockManager.LockMode.OnDemand) .withProperties(Collections.singletonMap("gradle.version", GradleVersion.current().getVersion())) .open();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 11.7K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/CachedCodePathComponentMetadataProcessorTest.groovy
} private DefaultComponentMetadataProcessor processorWithCacheThatNeverHits() { CacheBuilder cacheBuilder cacheBuilder = Mock(CacheBuilder) { withInitialLockMode(_ as FileLockManager.LockMode) >> { cacheBuilder } open() >> { Mock(PersistentCache) { createIndexedCache(_ as IndexedCacheParameters) >> { Mock(IndexedCache) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 11:21:11 UTC 2024 - 8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/process/internal/worker/child/WorkerProcessClassPathProvider.java
PersistentCache workerClassPathCache = cacheBuilderFactory .createCacheBuilder("workerMain") .withInitialLockMode(FileLockManager.LockMode.Exclusive) .withInitializer(new CacheInitializer()) .open(); try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 11.1K bytes - Viewed (0)