Package 

Interface CleanableStore

  • All Implemented Interfaces:
    java.io.Serializable

    
    public interface CleanableStore
     implements Serializable
                        

    Store of tracked directories that can be cleaned with CleanDataTask. All directories that was not marked as used at least CleanDataTask.timeToLiveInDays days will be removed.

    To register store call CleanableStore["/path/to/dir"]. Now you will be able to access files via CleanableStore["/path/to/dir"]["file/name"].use() and it would update usage of th store.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit cleanDir(Instant expirationDate)
      abstract DownloadedFile get(String fileName)
      abstract Unit markUsed()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait