Class NamedLocksTrackingFileManager

    • Constructor Summary

      Constructors 
      Constructor Description
      NamedLocksTrackingFileManager​(org.eclipse.aether.named.NamedLockFactory namedLockFactory, long time, java.util.concurrent.TimeUnit unit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean delete​(java.io.File file)
      Deprecated.
      boolean delete​(java.nio.file.Path path)
      Deletes the specified properties file, if exists.
      java.util.Properties read​(java.io.File file)
      Deprecated.
      java.util.Properties read​(java.nio.file.Path path)
      Reads up the specified properties file into Properties, if exists, otherwise null is returned.
      java.util.Properties update​(java.io.File file, java.util.Map<java.lang.String,​java.lang.String> updates)
      Deprecated.
      java.util.Properties update​(java.nio.file.Path path, java.util.Map<java.lang.String,​java.lang.String> updates)
      Applies updates to specified properties file and returns resulting Properties with contents same as in updated file, never null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamedLocksTrackingFileManager

        public NamedLocksTrackingFileManager​(org.eclipse.aether.named.NamedLockFactory namedLockFactory,
                                             long time,
                                             java.util.concurrent.TimeUnit unit)
    • Method Detail

      • read

        @Deprecated
        public java.util.Properties read​(java.io.File file)
        Deprecated.
        Description copied from interface: TrackingFileManager
        Reads up the specified properties file into Properties, if exists, otherwise null is returned.
        Specified by:
        read in interface TrackingFileManager
      • read

        public java.util.Properties read​(java.nio.file.Path path)
        Description copied from interface: TrackingFileManager
        Reads up the specified properties file into Properties, if exists, otherwise null is returned.
        Specified by:
        read in interface TrackingFileManager
      • update

        @Deprecated
        public java.util.Properties update​(java.io.File file,
                                           java.util.Map<java.lang.String,​java.lang.String> updates)
        Deprecated.
        Description copied from interface: TrackingFileManager
        Applies updates to specified properties file and returns resulting Properties with contents same as in updated file, never null.
        Specified by:
        update in interface TrackingFileManager
      • update

        public java.util.Properties update​(java.nio.file.Path path,
                                           java.util.Map<java.lang.String,​java.lang.String> updates)
        Description copied from interface: TrackingFileManager
        Applies updates to specified properties file and returns resulting Properties with contents same as in updated file, never null.
        Specified by:
        update in interface TrackingFileManager
      • delete

        @Deprecated
        public boolean delete​(java.io.File file)
        Deprecated.
        Description copied from interface: TrackingFileManager
        Deletes the specified properties file, if exists. If file existed and was deleted, returns true.
        Specified by:
        delete in interface TrackingFileManager
      • delete

        public boolean delete​(java.nio.file.Path path)
        Description copied from interface: TrackingFileManager
        Deletes the specified properties file, if exists. If file existed and was deleted, returns true.
        Specified by:
        delete in interface TrackingFileManager