Package io.a2a.server.util.async
Class AsyncUtils
java.lang.Object
io.a2a.server.util.async.AsyncUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidconsumer(mutiny.zero.TubeConfiguration config, Flow.Publisher<T> source, Function<T, Boolean> nextFunction, Consumer<Throwable> errorConsumer) static <T,N> Flow.Publisher<N> convertingProcessor(Flow.Publisher<T> source, Function<T, N> converterFunction) static mutiny.zero.TubeConfigurationstatic mutiny.zero.TubeConfigurationcreateTubeConfig(int bufferSize) static <T> Flow.Publisher<T>processor(mutiny.zero.TubeConfiguration config, Flow.Publisher<T> source, BiFunction<Consumer<Throwable>, T, Boolean> nextFunction)
-
Constructor Details
-
AsyncUtils
public AsyncUtils()
-
-
Method Details
-
createTubeConfig
public static mutiny.zero.TubeConfiguration createTubeConfig() -
createTubeConfig
public static mutiny.zero.TubeConfiguration createTubeConfig(int bufferSize) -
consumer
public static <T> void consumer(mutiny.zero.TubeConfiguration config, Flow.Publisher<T> source, Function<T, Boolean> nextFunction, Consumer<Throwable> errorConsumer) -
processor
public static <T> Flow.Publisher<T> processor(mutiny.zero.TubeConfiguration config, Flow.Publisher<T> source, BiFunction<Consumer<Throwable>, T, Boolean> nextFunction) -
convertingProcessor
public static <T,N> Flow.Publisher<N> convertingProcessor(Flow.Publisher<T> source, Function<T, N> converterFunction)
-