Class FileSynchronizer
java.lang.Object
io.github.monsieurdoceo.filizer.storage.infrastructure.FileSynchronizer
Coordinates file synchronization by delegating the work
to the configured synchronization strategy.
-
Constructor Summary
ConstructorsConstructorDescriptionFileSynchronizer(FileSynchronizationStrategy strategy) Creates a new synchronizer. -
Method Summary
Modifier and TypeMethodDescriptionvoidensureUpToDate(CustomFile file) Ensures that the given file is synchronized.
-
Constructor Details
-
FileSynchronizer
Creates a new synchronizer.- Parameters:
strategy- the synchronization strategy
-
-
Method Details
-
ensureUpToDate
Ensures that the given file is synchronized.- Parameters:
file- the file to synchronize
-