public PollingScanDiskSpaceMonitor(Set<Path> watchPaths,long pollingIntervalMillis){
  this.watchPaths=Collections.unmodifiableSet(new HashSet<>(watchPaths));
  this.pollingIntervalMillis=pollingIntervalMillis;
}

public PollingScanDiskSpaceMonitor ( Set < Path > watchPaths , long pollingIntervalMillis ) { this . watchPaths = Collections . unmodifiableSet ( new HashSet < > ( watchPaths ) ) ; this . pollingIntervalMillis = pollingIntervalMillis ; }
creates a new disk space monitor that uses a periodic polling mechanism .
