Package | Description |
---|---|
agi.foundation.infrastructure.threading |
Contains types used to perform and manage calculations among multiple threads of execution.
|
Modifier and Type | Method and Description |
---|---|
static <TParameter1,TParameter2> |
ThreadedCalculation.BodyCallback2.of(ThreadedCalculation.BodyCallback2.Function<TParameter1,TParameter2> f)
Create a delegate for the given interface.
|
static <TParameter1,TParameter2> |
ThreadedCalculation.BodyCallback2.of(ThreadedCalculation.BodyCallback2.Function<TParameter1,TParameter2> f,
Class<?> targetClass,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
static <TParameter1,TParameter2> |
ThreadedCalculation.BodyCallback2.of(ThreadedCalculation.BodyCallback2.Function<TParameter1,TParameter2> f,
Object targetObject,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
Modifier and Type | Method and Description |
---|---|
static <TParameter1,TParameter2> |
ThreadedCalculation._for(int start,
int stop,
TParameter1 parameter1,
TParameter2 parameter2,
ITrackCalculationProgress tracker,
ThreadedCalculation.BodyCallback2<TParameter1,TParameter2> body)
A 'for' loop that is parallelized among multiple threads according to the
ThreadingPolicy active in the calling thread. |