java.lang.Object
io.github.monsieurdoceo.filizer.storage.infrastructure.FileSynchronizer

public final class FileSynchronizer extends Object
Coordinates file synchronization by delegating the work to the configured synchronization strategy.
  • Constructor Details

    • FileSynchronizer

      public FileSynchronizer(FileSynchronizationStrategy strategy)
      Creates a new synchronizer.
      Parameters:
      strategy - the synchronization strategy
  • Method Details

    • ensureUpToDate

      public void ensureUpToDate(CustomFile file)
      Ensures that the given file is synchronized.
      Parameters:
      file - the file to synchronize