Package com.drighetto.pp.task

Examples of com.drighetto.pp.task.FileCounterRecursiveTaskWithPhaser


    Phaser phaser = new Phaser(alphabet.length());

    /* Create tasks */
    List<FileCounterRecursiveTaskWithPhaser> tasks = new ArrayList<FileCounterRecursiveTaskWithPhaser>(alphabet.length());
    for (char c : alphabet.toCharArray()) {
      tasks.add(new FileCounterRecursiveTaskWithPhaser(new File(c + ":\\"), phaser));
    }

    /* Launch tasks */
    for (FileCounterRecursiveTaskWithPhaser task : tasks) {
      taskExecutor.execute(task);
View Full Code Here

TOP

Related Classes of com.drighetto.pp.task.FileCounterRecursiveTaskWithPhaser

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.