org.apache.blur.utils
Class ForkJoin

java.lang.Object
  extended by org.apache.blur.utils.ForkJoin

public class ForkJoin
extends Object


Nested Class Summary
static interface ForkJoin.Merger<OUTPUT>
           
static interface ForkJoin.ParallelCall<INPUT,OUTPUT>
           
static interface ForkJoin.ParallelReturn<OUTPUT>
           
 
Field Summary
static BlurExecutorCompletionService.Cancel CANCEL
           
 
Constructor Summary
ForkJoin()
           
 
Method Summary
static
<INPUT,OUTPUT>
ForkJoin.ParallelReturn<OUTPUT>
execute(java.util.concurrent.ExecutorService executor, Iterable<INPUT> it, ForkJoin.ParallelCall<INPUT,OUTPUT> parallelCall)
           
static
<INPUT,OUTPUT>
ForkJoin.ParallelReturn<OUTPUT>
execute(java.util.concurrent.ExecutorService executor, Iterable<INPUT> it, ForkJoin.ParallelCall<INPUT,OUTPUT> parallelCall, BlurExecutorCompletionService.Cancel cancel)
           
static
<T> T
ignoreExecutionException(java.util.concurrent.Future<T> future, T defaultValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANCEL

public static BlurExecutorCompletionService.Cancel CANCEL
Constructor Detail

ForkJoin

public ForkJoin()
Method Detail

execute

public static <INPUT,OUTPUT> ForkJoin.ParallelReturn<OUTPUT> execute(java.util.concurrent.ExecutorService executor,
                                                                     Iterable<INPUT> it,
                                                                     ForkJoin.ParallelCall<INPUT,OUTPUT> parallelCall)

execute

public static <INPUT,OUTPUT> ForkJoin.ParallelReturn<OUTPUT> execute(java.util.concurrent.ExecutorService executor,
                                                                     Iterable<INPUT> it,
                                                                     ForkJoin.ParallelCall<INPUT,OUTPUT> parallelCall,
                                                                     BlurExecutorCompletionService.Cancel cancel)

ignoreExecutionException

public static <T> T ignoreExecutionException(java.util.concurrent.Future<T> future,
                                             T defaultValue)
                                  throws InterruptedException
Throws:
InterruptedException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.