|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepeatListener
Interface for listeners to the batch process. Implementers can provide enhance the behaviour of a batch in small cross-cutting modules. The framework provides callbacks at key points in the processing.
Method Summary | |
---|---|
void |
after(RepeatContext context,
ExitStatus result)
Called by the framework after each item has been processed, unless the item processing results in an exception. |
void |
before(RepeatContext context)
Called by the framework before each batch item. |
void |
close(RepeatContext context)
Called once at the end of a complete batch, after normal or abnormal completion (i.e. |
void |
onError(RepeatContext context,
Throwable e)
Called when a repeat callback fails by throwing an exception. |
void |
open(RepeatContext context)
Called once at the start of a complete batch, before any items are processed. |
Method Detail |
---|
void before(RepeatContext context)
context
- the current batch context.void after(RepeatContext context, ExitStatus result)
context
- the current batch contextresult
- the result of the callbackvoid open(RepeatContext context)
context
- the current batch contextvoid onError(RepeatContext context, Throwable e)
context
- the current batch contexte
- the error that was encountered in an item callback.void close(RepeatContext context)
context
- the current batch context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |