Uses of Interface
org.pipecraft.infra.concurrent.FailableInterruptibleConsumer
-
Packages that use FailableInterruptibleConsumer Package Description org.pipecraft.infra.concurrent -
-
Uses of FailableInterruptibleConsumer in org.pipecraft.infra.concurrent
Methods in org.pipecraft.infra.concurrent that return FailableInterruptibleConsumer Modifier and Type Method Description default FailableInterruptibleConsumer<T,E>FailableInterruptibleConsumer. andThen(FailableInterruptibleConsumer<? super T,? extends E> after)Similar to andThen method ofConsumerstatic <T,E extends Exception>
FailableInterruptibleConsumer<T,E>FailableInterruptibleConsumer. fromConsumer(Consumer<T> consumer)Utility method for wrapping a consumer with a failable consumerMethods in org.pipecraft.infra.concurrent with parameters of type FailableInterruptibleConsumer Modifier and Type Method Description default FailableInterruptibleConsumer<T,E>FailableInterruptibleConsumer. andThen(FailableInterruptibleConsumer<? super T,? extends E> after)Similar to andThen method ofConsumerstatic <T,E extends Exception>
voidParallelTaskProcessor. runFailable(Collection<T> items, int parallelism, FailableInterruptibleConsumer<? super T,E> processor)Processed the items in parallel by running a given processor on them.static <T,E extends Exception>
voidParallelTaskProcessor. runFailable(ExecutorService ex, Collection<T> items, FailableInterruptibleConsumer<? super T,E> processor)Processed the items in parallel, by running a given processor on them, using the provided executor.
-