| Constructor | Description |
|---|---|
FlowBuilder() |
| Modifier and Type | Method | Description |
|---|---|---|
Flow<M,R,W> |
build() |
Finally builds the flow.
|
FlowBuilder<M,R,W> |
read(Function<M,R> reader) |
Sets the reader for this flow.
|
FlowBuilder<M,R,W> |
read(Supplier<Function<M,R>> readerFactory) |
Sets a reader factory for this flow which creates a new reader for every processed message.
|
static <M extends Message,R,W> |
receiving(Class<M> clazz) |
|
FlowBuilder<M,R,W> |
transform(Function<R,W> transformer) |
Sets the transformer for this flow.
|
FlowBuilder<M,R,W> |
transform(Supplier<Function<R,W>> transformerFactory) |
Sets the transformer factory for this flow which creates a new transformer for every processed message.
|
FlowBuilder<M,R,W> |
write(Consumer<W> consumingWriter) |
|
FlowBuilder<M,R,W> |
write(Supplier<Consumer<W>> consumingWriterFactory) |
|
FlowBuilder<M,R,W> |
writeAndSend(Function<W,Message> writer) |
Sets output queue and writer for this flow.
|
FlowBuilder<M,R,W> |
writeAndSend(Supplier<Function<W,Message>> writerFactory) |
Sets writer factory for this flow which creates a new writer for every processed message.
|
FlowBuilder<M,R,W> |
writeAndSendMany(Function<W,Collection<? extends Message>> writer) |
Sets output queue and writer for this flow.
|
FlowBuilder<M,R,W> |
writeAndSendMany(Supplier<Function<W,Collection<? extends Message>>> writerFactory) |
Sets writer factory for this flow which creates a new writer for every processed message.
|
public FlowBuilder<M,R,W> read(Function<M,R> reader)
reader - The reader to process incoming messages.FlowBuilder instance for further configuration or creation of the Flow.public FlowBuilder<M,R,W> read(Supplier<Function<M,R>> readerFactory)
readerFactory - The reader factory to provide readers for incoming messages.FlowBuilder instance for further configuration or creation of the Flow.public FlowBuilder<M,R,W> transform(Function<R,W> transformer)
transformer - The transformer to process data produced by the reader, sending it further to the writer.FlowBuilder instance for further configuration of the Flow.public FlowBuilder<M,R,W> transform(Supplier<Function<R,W>> transformerFactory)
transformerFactory - The transformer factory to provide transformers.FlowBuilder instance for further configuration of the Flow.public FlowBuilder<M,R,W> writeAndSend(Function<W,Message> writer)
writer - The writer to produce outgoing messages.FlowBuilder instance for further configuration or creation of the Flow.public FlowBuilder<M,R,W> writeAndSend(Supplier<Function<W,Message>> writerFactory)
writerFactory - The writer factory to provide a writer for every message.FlowBuilder instance for further configuration or creation of the Flow.public FlowBuilder<M,R,W> writeAndSendMany(Function<W,Collection<? extends Message>> writer)
writer - The writer to produce outgoing messages.FlowBuilder instance for further configuration or creation of the Flow.public FlowBuilder<M,R,W> writeAndSendMany(Supplier<Function<W,Collection<? extends Message>>> writerFactory)
writerFactory - The writer factory to provide a writer for every message.FlowBuilder instance for further configuration or creation of the Flow.public Flow<M,R,W> build()
Flow as configured before.public static <M extends Message,R,W> FlowBuilder<M,R,W> receiving(Class<M> clazz)
Copyright © 2018. All rights reserved.