naver / spring-batch-plus

Add useful features to spring batch
Apache License 2.0
112 stars 10 forks source link

Adapter for processor-writer pair #114

Open acktsap opened 3 weeks ago

acktsap commented 3 weeks ago

@imbyungjun

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

public interface ItemStreamProcessorWriter<I, O>
    extends ItemProcessorDelegate<I, O>, ItemStreamWriterDelegate<O> {
}
imbyungjun commented 1 week ago

@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.

acktsap commented 1 week ago

@imbyungjun

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