Package org.eclipse.aether.internal.impl
Class NamedLocksTrackingFileManager
java.lang.Object
org.eclipse.aether.internal.impl.NamedLocksTrackingFileManager
- All Implemented Interfaces:
TrackingFileManager
Manages access to a properties file using named locks.
This implementation uses NamedLock to protect tracking files from concurrent access, and can be used
when it is single "modern" Maven version used to access same local repository concurrently.
- Since:
- 2.0.17
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNamedLocksTrackingFileManager(NamedLockFactory namedLockFactory, long time, TimeUnit unit) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanDeletes the specified properties file, if exists.Deprecated.Reads up the specified properties file intoProperties, if exists, otherwisenullis returned.Deprecated.Applies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.
-
Constructor Details
-
NamedLocksTrackingFileManager
-
-
Method Details
-
read
Deprecated.Description copied from interface:TrackingFileManagerReads up the specified properties file intoProperties, if exists, otherwisenullis returned.- Specified by:
readin interfaceTrackingFileManager
-
read
Description copied from interface:TrackingFileManagerReads up the specified properties file intoProperties, if exists, otherwisenullis returned.- Specified by:
readin interfaceTrackingFileManager
-
update
Deprecated.Description copied from interface:TrackingFileManagerApplies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.- Specified by:
updatein interfaceTrackingFileManager
-
update
Description copied from interface:TrackingFileManagerApplies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.- Specified by:
updatein interfaceTrackingFileManager
-
delete
Deprecated.Description copied from interface:TrackingFileManagerDeletes the specified properties file, if exists. If file existed and was deleted, returnstrue.- Specified by:
deletein interfaceTrackingFileManager
-
delete
Description copied from interface:TrackingFileManagerDeletes the specified properties file, if exists. If file existed and was deleted, returnstrue.- Specified by:
deletein interfaceTrackingFileManager
-