- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for CacheInitializationAction (0.63 sec)
-
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CacheInitializationAction.java
* The lock is not released between calling {@link #requiresInitialization(FileLock)} and this method. */ void initialize(FileLock fileLock); CacheInitializationAction NO_INIT_REQUIRED = new CacheInitializationAction() { @Override public boolean requiresInitialization(FileLock fileLock) { return false; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccessTest.groovy
def lockManager = Mock(FileLockManager) def cacheAccess = new LockOnDemandCrossProcessCacheAccess("<cache>", file, DefaultLockOptions.mode(FileLockManager.LockMode.Exclusive), lockManager, new ReentrantLock(), Stub(CacheInitializationAction), Stub(Consumer), Stub(Consumer)) def "close when lock has never been acquired"() { when: cacheAccess.close() then: 0 * _ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 21.8K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessIntegrationTest.groovy
* simultaneously. Then the second one, attempting to initialize the cache, will fail to obtain an exclusive lock on the cache. Instead * of failing, it should recheck if initialization was performed by calling {@link CacheInitializationAction#requiresInitialization(org.gradle.cache.FileLock)} * again. This is simulated here by an requiresInitialization() implementation that returns false after a number of calls to itself. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultPersistentDirectoryStore.java
import javax.annotation.Nullable; import java.io.File; import java.util.Arrays; import java.util.Collection; import java.util.function.Supplier; import static org.gradle.cache.internal.CacheInitializationAction.NO_INIT_REQUIRED; public class DefaultPersistentDirectoryStore implements ReferencablePersistentCache { public static final int CLEANUP_INTERVAL_IN_HOURS = 24; private final File dir;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 19:10:33 UTC 2024 - 5.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccess.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccess.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 01 12:21:15 UTC 2024 - 3.6K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultPersistentDirectoryCache.java
this.properties.putAll(properties); } @Override protected CacheInitializationAction getInitAction() { return new Initializer(); } public Properties getProperties() { return properties; } private class Initializer implements CacheInitializationAction { @Override public boolean requiresInitialization(FileLock lock) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 19:20:15 UTC 2024 - 5.1K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccess.java
private final Runnable unlocker; private final Consumer<FileLockReleasedSignal> whenContended; private int lockCount; private FileLock fileLock; private final CacheInitializationAction initAction; private FileLockReleasedSignal lockReleaseSignal; /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 6.7K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccessTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 3.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessTest.groovy
class FixedSharedModeCrossProcessCacheAccessTest extends Specification { def file = new TestFile("some-file.lock") def lockManager = Mock(FileLockManager) def initAction = Mock(CacheInitializationAction) def onOpenAction = Mock(Consumer) def onCloseAction = Mock(Consumer) def lockOptions = DefaultLockOptions.mode(FileLockManager.LockMode.Shared)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 5.5K bytes - Viewed (0)