Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 78 for LockMode (0.11 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLock.java

         * Returns some memento of the current state of this target file.
         */
        State getState();
    
        /**
         * The actual mode of the lock. May be different to what was requested.
         */
        FileLockManager.LockMode getMode();
    
        /**
         * An immutable snapshot of the state of a lock.
         */
        interface State {
            boolean canDetectChanges();
            boolean isInInitialState();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultGeneratedGradleJarCache.java

            this.cache = cacheBuilderFactory.createCacheBuilder(CACHE_KEY)
                .withDisplayName(CACHE_DISPLAY_NAME)
                .withInitialLockMode(FileLockManager.LockMode.OnDemand)
                .open();
            this.gradleVersion = gradleVersion;
        }
    
        @Override
        public File get(final String identifier, final Action<File> creator) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentingClasspathFileTransformer.java

            return fileHasher;
        }
    
        private FileLock exclusiveLockFor(File file) {
            return fileLockManager.lock(
                file,
                mode(FileLockManager.LockMode.Exclusive).useCrossVersionImplementation(),
                "instrumented jar cache"
            );
        }
    
        private String hashOf(FileSystemLocationSnapshot sourceSnapshot) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:36:38 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy

    import org.junit.Rule
    import spock.lang.Specification
    
    import java.util.function.Consumer
    
    import static org.gradle.cache.FileLockManager.LockMode.Exclusive
    import static org.gradle.cache.FileLockManager.LockMode.Shared
    import static org.gradle.cache.internal.filelock.DefaultLockOptions.mode
    
    class DefaultCacheFactoryTest extends Specification {
        @Rule
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/cache/UserHomeScopedCompileCaches.java

            cache = cacheBuilderFactory
                .createCacheBuilder("javaCompile")
                .withDisplayName("Java compile cache")
                .withInitialLockMode(FileLockManager.LockMode.OnDemand)
                .open();
            IndexedCacheParameters<HashCode, ClassSetAnalysisData> jarCacheParameters = IndexedCacheParameters.of(
                "jarAnalysis",
                new HashCodeSerializer(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Feb 24 12:57:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccess.java

    import org.gradle.internal.UncheckedException;
    
    import java.io.File;
    import java.util.function.Consumer;
    import java.util.function.Supplier;
    
    import static org.gradle.cache.FileLockManager.LockMode.Exclusive;
    
    /**
     * A {@link CrossProcessCacheAccess} implementation used when a cache is opened with an exclusive lock that is held until the cache is closed. This implementation is simply a no-op for these methods.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. platforms/software/version-control/src/main/java/org/gradle/vcs/internal/resolver/PersistentVcsMetadataCache.java

            cache = cacheBuilderFactory
                .createCacheBuilder("vcsMetadata")
                .withDisplayName("VCS metadata")
                .withInitialLockMode(FileLockManager.LockMode.OnDemand) // Don't need to lock anything until we use the caches
                .open();
            workingDirCache = cache.createIndexedCache("workingDirs", String.class, VALUE_SERIALIZER);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultFileContentCacheFactory.java

            this.cache = cacheBuilderFactory
                .createCacheBuilder("fileContent")
                .withDisplayName("file content cache")
                .withInitialLockMode(FileLockManager.LockMode.OnDemand)
                .open();
        }
    
        @Override
        public void close() throws IOException {
            cache.close();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top