Package org.ojalgo.concurrent
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 ParallelismSupplier
default ParallelismSupplier
adjustUp()
default ParallelismSupplier
average
(IntSupplier other) default ParallelismSupplier
default ParallelismSupplier
divideBy
(int divisor) Round up as in: 9 / 2 = 5 and 1 / 9 = 1default ParallelismSupplier
halve()
default ParallelismSupplier
default ParallelismSupplier
limit
(int notMoreThan) default ParallelismSupplier
limit
(IntSupplier notMoreThan) default ParallelismSupplier
require
(int atLeast) default ParallelismSupplier
require
(IntSupplier atLeast) default ParallelismSupplier
reserveBytes
(long bytesPerThread) Make sure there's this much memory per thread by, if necessary, limiting the parallelism.default ParallelismSupplier
reserveGigaBytes
(long gigaBytesPerThread) default ParallelismSupplier
reserveKiloBytes
(long kiloBytesPerThread) default ParallelismSupplier
reserveMegaBytes
(long megaBytesPerThread) default ParallelismSupplier
reserveTeraBytes
(long teraBytesPerThread) Methods inherited from interface java.util.function.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
-
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:
-