|Constructor and Description|
Creates a new instance of
|Modifier and Type||Method and Description|
Notifies the cache that the path was synced.
The logic of shouldSyncPath need to consider the difference between file and directory, with the variable isGetFileInfo we just process getFileInfo specially.
public void notifySyncedPath(String path, DescendantType descendantType)
path- the path that was synced
descendantType- the descendant type that the path was synced with
public boolean shouldSyncPath(String path, long intervalMs, boolean isGetFileInfo)
path- the path to check
intervalMs- the sync interval, in ms
isGetFileInfo- the operate is from getFileInfo or not
Copyright © 2022. All Rights Reserved.