Package com.google.mu.util.concurrent
package com.google.mu.util.concurrent
Parallelizer (parallel stream using Executor), Retryer.
Package Specification
The code is developed and tested under Java 8.0.-
ClassDescriptionUtility to support structured concurrency for IO-bound subtasks of a single unit of work, while limiting the max concurrency.Immutable object that retries actions upon exceptions.Represents a delay upon an event of type
E
prior to the retry attempt.Retries based on return values.Convenient utilities to help with structured concurrency on top of anExecutorService
(preferably with virtual threads).StructuredConcurrency.Join2<A,B, R, X extends Throwable> Function to join two results from concurrent operations.StructuredConcurrency.Join3<A,B, C, R, X extends Throwable> Function to join three results from concurrent operations.StructuredConcurrency.Join4<A,B, C, D, R, X extends Throwable> Function to join four results from concurrent operations.StructuredConcurrency.Join5<A,B, C, D, E, R, X extends Throwable> Function to join five results from concurrent operations.