Class FileLockFactory
java.lang.Object
com.netflix.genie.agent.utils.locks.impl.FileLockFactory
Factory for creating locks implementing
CloseableLock
.- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a lock locking the provided File object.
-
Constructor Details
-
FileLockFactory
public FileLockFactory()
-
-
Method Details
-
getLock
Get a lock locking the provided File object.- Parameters:
file
- file to be locked- Returns:
- a lock locking the file
- Throws:
LockException
- in case of a problem getting a lock for the file
-