- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for copyWithMode (0.16 sec)
-
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/LockOptions.java
/** * Creates a copy of this options instance using the given mode. * * @param mode the mode to overwrite the current mode with */ LockOptions copyWithMode(FileLockManager.LockMode mode);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 982 bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/filelock/DefaultLockOptionsTest.groovy
class DefaultLockOptionsTest extends Specification { def "can make copy of options"() { def builder = DefaultLockOptions.mode(Exclusive).useCrossVersionImplementation() when: def copy = builder.copyWithMode(Shared) then: !copy.is(builder) copy.mode == Shared copy.useCrossVersionImplementation }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 1.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/DefaultLockOptions.java
return mode; } @Override public boolean isUseCrossVersionImplementation() { return crossVersion; } @Override public LockOptions copyWithMode(FileLockManager.LockMode mode) { return new DefaultLockOptions(mode, crossVersion); } @Override public String toString() { return "DefaultLockOptions{" + "mode=" + mode +
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccess.java
fileLock = null; FileLock exclusiveLock = null; try { exclusiveLock = lockManager.lock(lockTarget, lockOptions.copyWithMode(Exclusive), cacheDisplayName); } catch (Exception e) { // acquiring the exclusive lock can fail in the rare case where another process is just doing or has just done the cache initialization
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 5.7K bytes - Viewed (0)