- All Implemented Interfaces:
- org.springframework.batch.core.SkipListener, org.springframework.batch.core.StepListener
public class EventEmittingSkipListener
extends Object
implements org.springframework.batch.core.SkipListener
Setups up the SkipProcessListener to emit events to the spring cloud stream output channel.
This listener emits the exception's message via the
BatchJobHeaders.BATCH_EXCEPTION
message header for each method. For
SkipListener.onSkipInProcess(Object, Throwable)
and
SkipListener.onSkipInWrite(Object, Throwable)
the body of the message consists
of the item that caused the error.
- Author:
- Glenn Renfro