Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ItemStreamReaderProcessor interfaces #115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

imbyungjun
Copy link
Contributor

Resovle #114

Add adapters for reader-processor pair. There are four new interfaces.

  • ItemStreamFluxReaderProcessor
  • ItemStreamIterableReaderProcessor
  • ItemStreamIteratorReaderProcessor
  • ItemStreamSimpleReaderProcessor

I think the integration test for reader-processor-writer is a super set of reader-processor.
So I thought about whether I would need a test, but I ended up adding it in a format that's almost the same as the existing integration test.

.<Integer, Integer>chunk(chunkCount, new ResourcelessTransactionManager())
.reader(itemStreamReader(testTasklet))
.processor(itemProcessor(testTasklet))
.writer(emptyItemStreamWriter)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimpleStepBuilder requires both reader and writer, I added no operation writer in integration tests.
image

* A {@link Flux<I>} based adapter for stream reader, processor. It can represent
* {@link ItemStreamReader}, {@link ItemProcessor} in a single class.
*
* @since 1.1.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be 1.2.0. Could you check to 1.2.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants