public interface ArtifactsGuard
Modifier and Type | Method and Description |
---|---|
void |
lockReading(java.io.File fileToLock)
Locks specified file or directory for reading.
|
void |
lockWriting(java.io.File fileToLock)
Locks specified file or directory for writing.
|
void |
unlockReading(java.io.File fileToUnlock)
Unlocks reading.
|
void |
unlockWriting(java.io.File fileToUnlock)
Unlocks writing.
|
void lockWriting(@NotNull java.io.File fileToLock)
Locks specified file or directory for writing. Doesn't throw any exceptions if the file system path doesn't exist.
fileToLock
- file to lock, can be absolute file or relative. If relative, than system artifacts directory will be added to the file path.void unlockWriting(@NotNull java.io.File fileToUnlock)
Unlocks writing. Doesn't throw any exceptions if the file system path doesn't exist.
fileToUnlock
- file to unlockvoid lockReading(@NotNull java.io.File fileToLock)
Locks specified file or directory for reading. Doesn't throw any exceptions if the file system path doesn't exist.
fileToLock
- file to lock, can be absolute file or relative. If relative, than system artifacts directory will be added to the file path.void unlockReading(@NotNull java.io.File fileToUnlock)
Unlocks reading. Doesn't throw any exceptions if the file system path doesn't exist.
fileToUnlock
- file to unlock