Class SyncWorker

  • All Implemented Interfaces:
    Runnable

    public class SyncWorker
    extends Object
    implements Runnable
    Handles the syncing of a single changed file using the given endpoint.
    • Constructor Detail

      • SyncWorker

        public SyncWorker​(ChangedFile file,
                          File watchDir,
                          SyncEndpoint endpoint)
        Creates a SyncWorker to handle syncing a file
        Parameters:
        file - the file to sync
        watchDir - dir under watch where file exists or null if file does not reside in a watched directory
        endpoint - the endpoint to which the file should be synced
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • isComplete

        public boolean isComplete()