30 Aralık 2022 Cuma

SpringBatch ItemStream Arayüzü

Giriş
Açıklaması şöyle
Both ItemReaders and ItemWriters serve their individual purposes well, but there is a common concern among both of them that necessitates another interface. In general, as part of the scope of a batch job, readers and writers need to be opened, closed, and require a mechanism for persisting state. The ItemStream interface serves that purpose
Kodu şöyle
public interface ItemStream {
  void open(ExecutionContext executionContext) throws ItemStreamException;
  void update(ExecutionContext executionContext) throws ItemStreamException;
  void close() throws ItemStreamException;
}


Hiç yorum yok:

Yorum Gönder