Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for AbstractResourceLockRegistry (0.62 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/AbstractResourceLockRegistry.java

    import java.util.concurrent.ConcurrentMap;
    
    public abstract class AbstractResourceLockRegistry<K, T extends ResourceLock> implements ResourceLockRegistry, ResourceLockContainer {
        private final LockCache<K, T> resourceLocks;
        private final ConcurrentMap<Long, ThreadLockDetails<T>> threadLocks = new ConcurrentHashMap<Long, ThreadLockDetails<T>>();
    
        public AbstractResourceLockRegistry(final ResourceLockCoordinationService coordinationService) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/AbstractResourceLockRegistryTest.groovy

        }
    
        static class TestRegistry extends AbstractResourceLockRegistry<String, ResourceLock> {
            TestRegistry(ResourceLockCoordinationService coordinationService) {
                super(coordinationService)
            }
    
            def getResourceLock(String displayName) {
                return getOrRegisterResourceLock(displayName, new AbstractResourceLockRegistry.ResourceLockProducer<String, ResourceLock>() {
                    @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/LockCache.java

            this.coordinationService = coordinationService;
            this.owner = owner;
        }
    
        public T getOrRegisterResourceLock(final K key, final AbstractResourceLockRegistry.ResourceLockProducer<K, T> producer) {
            try {
                return resourceLocks.get(key, new Callable<T>() {
                    @Override
                    public T call() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/SharedResourceLeaseRegistry.java

     * limitations under the License.
     */
    
    package org.gradle.internal.resources;
    
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    
    public class SharedResourceLeaseRegistry extends AbstractResourceLockRegistry<String, ResourceLock> {
        private final Map<String, LeaseHolder> sharedResources = new ConcurrentHashMap<String, LeaseHolder>();
        private final ResourceLockCoordinationService coordinationService;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/TaskExecutionLockRegistry.java

     * limitations under the License.
     */
    
    package org.gradle.internal.resources;
    
    import org.gradle.util.Path;
    
    public class TaskExecutionLockRegistry extends AbstractResourceLockRegistry<Path, TaskExecutionLock> {
        private final ProjectLockRegistry projectLockRegistry;
    
        public TaskExecutionLockRegistry(ResourceLockCoordinationService coordinationService, ProjectLockRegistry projectLockRegistry) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLockRegistry.java

     * limitations under the License.
     */
    
    package org.gradle.internal.resources;
    
    import org.gradle.util.Path;
    
    public class ProjectLockRegistry extends AbstractResourceLockRegistry<Path, ProjectLock> {
        private final boolean parallelEnabled;
        private final LockCache<Path, AllProjectsLock> allProjectsLocks;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top