Package nl.pim16aap2.lightkeeper.runtime
Class IdeRuntimeLock
java.lang.Object
nl.pim16aap2.lightkeeper.runtime.IdeRuntimeLock
- All Implemented Interfaces:
AutoCloseable
Cross-process lease preventing concurrent use or replacement of a module's IDE runtime.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdeRuntimeLockAttempts to acquire the module-wide IDE runtime lock without waiting.voidclose()
-
Method Details
-
acquire
Attempts to acquire the module-wide IDE runtime lock without waiting.- Parameters:
moduleDirectory- Owning Maven module directory.- Returns:
- The acquired lease.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-