I
- type of input itemsO
- type of output itemspublic class RemoteChunkingWorkerBuilder<I,O>
extends java.lang.Object
ChunkProcessorChunkHandler
with the provided
item processor and writer. If no item processor is provided, a
PassThroughItemProcessor
will be usedIntegrationFlow
with the
ChunkProcessorChunkHandler
as a service activator which listens
to incoming requests on inputChannel
and sends replies
on outputChannel
Constructor and Description |
---|
RemoteChunkingWorkerBuilder() |
Modifier and Type | Method and Description |
---|---|
org.springframework.integration.dsl.IntegrationFlow |
build()
Create an
IntegrationFlow with a ChunkProcessorChunkHandler
configured as a service activator listening to the input channel and replying
on the output channel. |
RemoteChunkingWorkerBuilder<I,O> |
inputChannel(org.springframework.messaging.MessageChannel inputChannel)
Set the input channel on which items sent by the master are received.
|
RemoteChunkingWorkerBuilder<I,O> |
itemProcessor(ItemProcessor<I,O> itemProcessor)
Set the
ItemProcessor to use to process items sent by the master
step. |
RemoteChunkingWorkerBuilder<I,O> |
itemWriter(ItemWriter<O> itemWriter)
Set the
ItemWriter to use to write items sent by the master step. |
RemoteChunkingWorkerBuilder<I,O> |
outputChannel(org.springframework.messaging.MessageChannel outputChannel)
Set the output channel on which replies will be sent to the master step.
|
public RemoteChunkingWorkerBuilder<I,O> itemProcessor(ItemProcessor<I,O> itemProcessor)
ItemProcessor
to use to process items sent by the master
step.itemProcessor
- to usepublic RemoteChunkingWorkerBuilder<I,O> itemWriter(ItemWriter<O> itemWriter)
ItemWriter
to use to write items sent by the master step.itemWriter
- to usepublic RemoteChunkingWorkerBuilder<I,O> inputChannel(org.springframework.messaging.MessageChannel inputChannel)
inputChannel
- the input channelpublic RemoteChunkingWorkerBuilder<I,O> outputChannel(org.springframework.messaging.MessageChannel outputChannel)
outputChannel
- the output channelpublic org.springframework.integration.dsl.IntegrationFlow build()
IntegrationFlow
with a ChunkProcessorChunkHandler
configured as a service activator listening to the input channel and replying
on the output channel.