Class CompositeSkipListener<T,S>
java.lang.Object
org.springframework.batch.core.listener.CompositeSkipListener<T,S>
- All Implemented Interfaces:
SkipListener<T,
,S> StepListener
- Author:
- Dave Syer, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onSkipInProcess
(T item, Throwable t) Call the registered listeners in order, respecting and prioritising those that implementOrdered
.void
Call the registered listeners in order, respecting and prioritising those that implementOrdered
.void
onSkipInWrite
(S item, Throwable t) Call the registered listeners in order, respecting and prioritising those that implementOrdered
.void
register
(SkipListener<? super T, ? super S> listener) Register additional listener.void
setListeners
(List<? extends SkipListener<? super T, ? super S>> listeners) Public setter for the listeners.
-
Constructor Details
-
CompositeSkipListener
public CompositeSkipListener()
-
-
Method Details
-
setListeners
Public setter for the listeners.- Parameters:
listeners
- list ofSkipListener
s to be called when skip events occur.
-
register
Register additional listener.- Parameters:
listener
- instance ofSkipListener
to be registered.
-
onSkipInRead
Call the registered listeners in order, respecting and prioritising those that implementOrdered
.- Specified by:
onSkipInRead
in interfaceSkipListener<T,
S> - Parameters:
t
- cause of the failure- See Also:
-
onSkipInWrite
Call the registered listeners in order, respecting and prioritising those that implementOrdered
.- Specified by:
onSkipInWrite
in interfaceSkipListener<T,
S> - Parameters:
item
- the failed itemt
- the cause of the failure- See Also:
-
onSkipInProcess
Call the registered listeners in order, respecting and prioritising those that implementOrdered
.- Specified by:
onSkipInProcess
in interfaceSkipListener<T,
S> - Parameters:
item
- the failed itemt
- the cause of the failure- See Also:
-