@org.eclipse.xtext.xbase.lib.XbaseGenerated final class JreExecutorUtils
extends java.lang.Object
Utilities for running tasks on the standard JRE executor service.
Maven Group Identifier:
Maven Artifact Identifier:
Since:
Action Summary
All actions
Static actions
Modifier and type
Action and description
static int
executeInThreadsAndWait(ExecutorService,SreRunnable,int,int)
Execute the given task in parallel and wait for the termination.
static void
executeInThreadsAndWait(ExecutorService,Collection<E>,boolean,Function2<P1,P2,Result>)
Execute the given tasks in parallel and wait for the termination.
static void
executeInThreadsWithoutWaiting(ExecutorService,SreRunnable,int,int)
Execute the given task in parallel but do not wait for the termination.
Modifier and type
Action and description
static int
executeInThreadsAndWait(ExecutorService,SreRunnable,int,int)
Execute the given task in parallel and wait for the termination.
static void
executeInThreadsAndWait(ExecutorService,Collection<E>,boolean,Function2<P1,P2,Result>)
Execute the given tasks in parallel and wait for the termination.
static void
executeInThreadsWithoutWaiting(ExecutorService,SreRunnable,int,int)
Execute the given task in parallel but do not wait for the termination.
Action Details
executeInThreadsAndWait(ExecutorService,SreRunnable,int,int)
def executeInThreadsAndWait(ExecutorService,SreRunnable,int,int) : int
Execute the given task in parallel and wait for the termination.
Parameters:
executorService -
task -
nbExecutions -
runGroupSize -
executeInThreadsAndWait(ExecutorService,Collection<E>,boolean,Function2<P1,P2,Result>)
def executeInThreadsAndWait(ExecutorService,Collection<E>,boolean,Function2<P1,P2,Result>)
Execute the given tasks in parallel and wait for the termination.
Parameters:
executorService -
tasks -
interceptExceptions -
wrapper -
executeInThreadsWithoutWaiting(ExecutorService,SreRunnable,int,int)
def executeInThreadsWithoutWaiting(ExecutorService,SreRunnable,int,int)
Execute the given task in parallel but do not wait for the termination.
Parameters:
executorService -
task -
nbExecutions -
runGroupSize -