Interface ParallelismSupplier
- All Superinterfaces:
IntSupplier
- All Known Implementing Classes:
Parallelism
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ParallelismSupplierdefault ParallelismSupplieradjustUp()default ParallelismSupplieraverage(IntSupplier other) default ParallelismSupplierdefault ParallelismSupplierdivideBy(int divisor) Round up as in: 9 / 2 = 5 and 1 / 9 = 1default ParallelismSupplierhalve()default ParallelismSupplierdefault ParallelismSupplierlimit(int notMoreThan) default ParallelismSupplierlimit(IntSupplier notMoreThan) default DivideAndConquer.DividernewDivider(int threshold) default ParallelismSupplierrequire(int atLeast) default ParallelismSupplierrequire(IntSupplier atLeast) default ParallelismSupplierreserveBytes(long bytesPerThread) Make sure there's this much memory per thread by, if necessary, limiting the parallelism.default ParallelismSupplierreserveGigaBytes(long gigaBytesPerThread) default ParallelismSupplierreserveKiloBytes(long kiloBytesPerThread) default ParallelismSupplierreserveMegaBytes(long megaBytesPerThread) default ParallelismSupplierreserveTeraBytes(long teraBytesPerThread) Methods inherited from interface IntSupplier
getAsInt
-
Method Details
-
adjustDown
- See Also:
-
adjustUp
- See Also:
-
average
-
decrement
-
divideBy
Round up as in: 9 / 2 = 5 and 1 / 9 = 1 -
halve
-
increment
-
limit
-
limit
-
newDivider
-
require
-
require
-
reserveBytes
Make sure there's this much memory per thread by, if necessary, limiting the parallelism. The total amount of memory available is defined byOjAlgoUtils.ENVIRONMENT -
reserveGigaBytes
- See Also:
-
reserveKiloBytes
- See Also:
-
reserveMegaBytes
- See Also:
-
reserveTeraBytes
- See Also:
-