Class LastModifiedStrategy
java.lang.Object
io.github.monsieurdoceo.filizer.storage.sync.strategy.LastModifiedStrategy
- All Implemented Interfaces:
FileSynchronizationStrategy
Synchronizes files using the filesystem last modified timestamp.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsynchronize(CustomFile file) Synchronizes the given file if the last modified timestamp is newer.
-
Constructor Details
-
LastModifiedStrategy
public LastModifiedStrategy()Creates a newLastModifiedStrategyinstance.This class does not require custom initialization.
-
-
Method Details
-
synchronize
Synchronizes the given file if the last modified timestamp is newer.- Specified by:
synchronizein interfaceFileSynchronizationStrategy- Parameters:
file- the file to synchronize
-