Package org.ct42.fnflow.batchdlt
Klasse BatchFnWrapper
java.lang.Object
org.ct42.fnflow.batchdlt.BatchFnWrapper
- Alle implementierten Schnittstellen:
BiFunction<reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>>,reactor.core.publisher.Sinks.Many<org.springframework.messaging.Message<Throwable>>, reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>>>
public class BatchFnWrapper
extends Object
implements BiFunction<reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>>,reactor.core.publisher.Sinks.Many<org.springframework.messaging.Message<Throwable>>,reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>>>
Wrapper function for functions of type Function<List<BatchElement>, List<BatchElement>>.
Organizes a buffer to pass a batch to the target function.
Is mapping the input from Message and the result back to Message.
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBatchFnWrapper(Function<List<BatchElement>, List<BatchElement>> target, int defaultBatchSize, long defaultBatchTimeout) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungreactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>> apply(reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>> messageFlux, reactor.core.publisher.Sinks.Many<org.springframework.messaging.Message<Throwable>> error) Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.function.BiFunction
andThen
-
Felddetails
-
defaultBatchSize
public final int defaultBatchSize -
defaultBatchTimeout
-
-
Konstruktordetails
-
BatchFnWrapper
public BatchFnWrapper(Function<List<BatchElement>, List<BatchElement>> target, int defaultBatchSize, long defaultBatchTimeout)
-
-
Methodendetails
-
apply
public reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>> apply(reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>> messageFlux, reactor.core.publisher.Sinks.Many<org.springframework.messaging.Message<Throwable>> error) - Angegeben von:
applyin SchnittstelleBiFunction<reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>>,reactor.core.publisher.Sinks.Many<org.springframework.messaging.Message<Throwable>>, reactor.core.publisher.Flux<org.springframework.messaging.Message<com.fasterxml.jackson.databind.JsonNode>>>
-