@FunctionalInterface public static interface RebuildTask.LockProvider
Modifier and Type | Method and Description |
---|---|
boolean |
acquireLock(String lockFile,
StringBuilder failureReason)
Attempts to acquire a lock on the specified file.
|
boolean acquireLock(String lockFile, StringBuilder failureReason)
lockFile
- The file for which to obtain the lock.failureReason
- A buffer that can be used to hold a reason why the lock could not be acquired.true
if the lock was obtained successfully, or false
if it could not be obtained.Copyright 2010-2022 ForgeRock AS.