public interface StatefulWriter
This interface is used to implement a restartable flat file item writer for Spring Batch.
Modifier and Type | Method and Description |
---|---|
void |
restoreState(String namespace,
Map<String,Object> state)
Restores a Map of previously stored state information.
|
void |
updateState(String namespace,
Map<String,Object> state)
Updates a Map with the current state of the Writer to allow for
restoration at a later time.
|
void updateState(String namespace, Map<String,Object> state)
namespace
- a String to prefix all state keys withstate
- the Map to update with the latest statevoid restoreState(String namespace, Map<String,Object> state) throws IllegalStateException
namespace
- a String to prefix all state keys withstate
- the Map containing the state to restoreIllegalStateException
- if the Map is missing any state information