Java 8 ForkJoinTask - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 ForkJoinTask class.

This code example shows how to use the following methods:getRawResult
 
    public void taskCompleted(ForkJoinTask<PT> task)
    { 
        if (this.combiner.useCombineOne())
        { 
            this.outputQueue.add(task.getRawResult());
        } 
    } 
 
    public void executeAndCombine(ForkJoinPool executor, ProcedureFactory<PT> procedureFactory, BatchIterable<T> list)
    { 
        FastList<ForkJoinTask<PT>> tasks = this.createAndExecuteTasks(executor, procedureFactory, list);
        if (this.combiner.useCombineOne())
        { 
            this.join();
        } 
        if (this.error != null)
        { 
            throw new RuntimeException("One or more parallel tasks failed", this.error);
        } 
5
CodeRank
This code example shows how to use the following methods:getRawResult
 
    public void taskCompleted(ForkJoinTask<PT> task)
    { 
        if (this.combiner.useCombineOne())
        { 
            this.outputQueue.add(task.getRawResult());
        } 
    } 
 
    public void executeAndCombine(ForkJoinPool executor, ProcedureFactory<PT> procedureFactory, List<T> list)
    { 
        FastList<ForkJoinTask<PT>> tasks = this.createAndExecuteTasks(executor, procedureFactory, list);
        if (this.combiner.useCombineOne())
        { 
            this.join();
        } 
        if (this.error != null)
        { 
            throw new RuntimeException("One or more parallel tasks failed", this.error);
        } 
5
CodeRank
This code example shows how to use the following methods:getRawResult
 
    public void taskCompleted(ForkJoinTask<PT> task)
    { 
        if (this.combiner.useCombineOne())
        { 
            this.outputQueue.add(task.getRawResult());
        } 
    } 
 
    public void executeAndCombine(ForkJoinPool executor, ObjectIntProcedureFactory<PT> procedureFactory, List<T> list)
    { 
        FastList<ForkJoinTask<PT>> tasks = this.createAndExecuteTasks(executor, procedureFactory, list);
        if (this.combiner.useCombineOne())
        { 
            this.join();
        } 
        if (this.error != null)
        { 
            throw new RuntimeException("One or more parallel tasks failed", this.error);
        } 
5
CodeRank
See Code Examples for Java 8 ForkJoinTask Methods: