naver/spring-batch-plus

Adapter for processor-writer pair

Opened this issue · 3 comments

@imbyungjun

Could you give me more detail? You mean this format?

public interface ItemStreamProcessorWriter<I, O>
	extends ItemProcessorDelegate<I, O>, ItemStreamWriterDelegate<O> {
}

@acktsap

Actually, my colleague had to use flux and a common writer, so like this.

public interface ItemStreamFluxReaderProcessor<I, O>
	extends ItemStreamFluxReaderDelegate<I>, ItemStreamFluxProcessorDelegate<I, O> {
}

I'm not sure if spring-batch-plus need to support all combinations of reader, processor, writer. But if you accept some of these kind of interfaces, I'll make a pull request.

@imbyungjun

I think it's good to provide such interface for users. Shell you make a pr for it?

todo list

  • kotlin extensions
  • adapter??