- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SharedResourceLeaseRegistry (0.33 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)