public interface ItemStream
Marker interface defining a contract for periodically storing state and restoring from that state should an error occur.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
If any resources are needed for the stream to operate they need to be destroyed here.
|
void |
open(ExecutionContext executionContext)
Open the stream for the provided
ExecutionContext. |
void |
update(ExecutionContext executionContext)
Indicates that the execution context provided during open is about to be saved.
|
void open(ExecutionContext executionContext) throws ItemStreamException
ExecutionContext.executionContext - current step's ExecutionContext. Will be the
executionContext from the last run of the step on a restart.java.lang.IllegalArgumentException - if context is nullItemStreamExceptionvoid update(ExecutionContext executionContext) throws ItemStreamException
executionContext - to be updatedjava.lang.IllegalArgumentException - if executionContext is null.ItemStreamExceptionvoid close()
throws ItemStreamException
ItemStreamException