Package org.openpdf.text.utils
Class PdfBatch
java.lang.Object
org.openpdf.text.utils.PdfBatch
Utility class for executing collections of tasks concurrently using Java 21 virtual threads.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PdfBatch
private PdfBatch()
-
-
Method Details
-
run
public static <T> PdfBatch.BatchResult<T> run(Collection<? extends Callable<T>> tasks, Consumer<T> onSuccess, Consumer<Throwable> onFailure)
-