T - type of the items.S - type of the results.public class ChunkLoggingListener<T,S> extends Object implements org.springframework.batch.core.SkipListener<T,S>, org.springframework.batch.core.ItemReadListener<T>, org.springframework.batch.core.ItemProcessListener<T,S>, org.springframework.batch.core.ItemWriteListener<S>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
ChunkLoggingListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterProcess(T item,
S result) |
void |
afterRead(T item) |
void |
afterWrite(List<? extends S> items) |
void |
beforeProcess(T item) |
void |
beforeRead() |
void |
beforeWrite(List<? extends S> items) |
protected String |
itemToString(Object item) |
void |
onProcessError(T item,
Exception e) |
void |
onReadError(Exception e) |
void |
onSkipInProcess(T item,
Throwable t) |
void |
onSkipInRead(Throwable t) |
void |
onSkipInWrite(S item,
Throwable t) |
void |
onWriteError(Exception e,
List<? extends S> items) |
protected String itemToString(Object item)
item - the Object to format.string representation.public void onReadError(Exception e)
onReadError in interface org.springframework.batch.core.ItemReadListener<T>public void onWriteError(Exception e, List<? extends S> items)
onWriteError in interface org.springframework.batch.core.ItemWriteListener<S>public void onSkipInRead(Throwable t)
public void beforeRead()
beforeRead in interface org.springframework.batch.core.ItemReadListener<T>public void afterRead(T item)
afterRead in interface org.springframework.batch.core.ItemReadListener<T>public void beforeProcess(T item)
public void beforeWrite(List<? extends S> items)
beforeWrite in interface org.springframework.batch.core.ItemWriteListener<S>Copyright © 2014–2019 devon4j-Team. All rights reserved.