- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for SharedResourceLeaseRegistry (0.37 sec)
-
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/SharedResourceLeaseRegistry.java
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; public SharedResourceLeaseRegistry(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) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/SharedResourceLeaseRegistryTest.groovy
def sharedResourceLeaseRegistry = new SharedResourceLeaseRegistry(coordinationService) def "can cleanly lock and unlock a shared resource"() { given: sharedResourceLeaseRegistry.registerSharedResource('resource', 1) and: def sharedResourceLock = sharedResourceLeaseRegistry.getResourceLock('resource') assert !lockIsHeld(sharedResourceLock)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/services/internal/DefaultBuildServicesRegistry.java
private final String name; private final int maxUsages; private final SharedResourceLeaseRegistry leaseRegistry; public ServiceBackedSharedResource(String name, int maxUsages, SharedResourceLeaseRegistry leaseRegistry) { this.name = name; this.maxUsages = maxUsages; this.leaseRegistry = leaseRegistry; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 06 19:15:45 UTC 2024 - 16.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/service/scopes/BuildScopeServices.java
return objectFactory.newInstance(DefaultToolchainManagement.class); } @Provides protected SharedResourceLeaseRegistry createSharedResourceLeaseRegistry(ResourceLockCoordinationService coordinationService) { return new SharedResourceLeaseRegistry(coordinationService); } @Provides protected DefaultBuildServicesRegistry createSharedServiceRegistry(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 09:21:42 UTC 2024 - 35.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/services/internal/DefaultBuildServicesRegistryTest.groovy
import org.gradle.internal.Actions import org.gradle.internal.Try import org.gradle.internal.event.DefaultListenerManager import org.gradle.internal.instantiation.InstantiatorFactory import org.gradle.internal.resources.SharedResourceLeaseRegistry import org.gradle.internal.service.Provides import org.gradle.internal.service.ServiceRegistrationProvider import org.gradle.internal.service.scopes.Scope
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 06 19:15:46 UTC 2024 - 16.4K bytes - Viewed (0) -
testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt
Class <org.gradle.internal.resources.SharedResourceLeaseRegistry> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (SharedResourceLeaseRegistry.java:0) Class <org.gradle.internal.resources.TaskExecutionLock> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (TaskExecutionLock.java:0)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 967.9K bytes - Viewed (0)