Package ratpack.file.internal

Examples of ratpack.file.internal.DefaultFileSystemChecksumService


  private FileSystemChecksumServices() {
  }

  public static FileSystemChecksumService service(LaunchConfig launchConfig) {
    Function<InputStream, String> checksummer = new Adler32Checksummer();
    DefaultFileSystemChecksumService service = new DefaultFileSystemChecksumService(launchConfig.getBaseDir(), checksummer);
    if (launchConfig.isDevelopment()) {
      return service;
    } else {
      CachingFileSystemChecksumService cachingService = new CachingFileSystemChecksumService(service);
      new FileSystemChecksumServicePopulater(launchConfig.getBaseDir().getFile(), cachingService, Executors.newFixedThreadPool(5), 4).start();
View Full Code Here

TOP

Related Classes of ratpack.file.internal.DefaultFileSystemChecksumService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.