|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatefulWriter
StatefulWriter can be implemented by writers that maintain state, so that in case of an error, the last updated state of the writer can be restored and writing can resume.
This interface is used to implement a restartable flat file item writer for Spring Batch.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 restore
IllegalStateException
- if the Map is missing any state information
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |