public class EventEmittingItemWriteListener extends Object implements org.springframework.batch.core.ItemWriteListener, org.springframework.core.Ordered
ItemWriteListener.onWriteError(Exception, List) provides a message as well as
the exception's message via the BatchJobHeaders.BATCH_EXCEPTION message header.| Constructor and Description |
|---|
EventEmittingItemWriteListener(org.springframework.messaging.MessageChannel output) |
EventEmittingItemWriteListener(org.springframework.messaging.MessageChannel output,
int order) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterWrite(List items) |
void |
beforeWrite(List items) |
int |
getOrder() |
void |
onWriteError(Exception exception,
List items) |
public EventEmittingItemWriteListener(org.springframework.messaging.MessageChannel output)
public EventEmittingItemWriteListener(org.springframework.messaging.MessageChannel output,
int order)
public void beforeWrite(List items)
beforeWrite in interface org.springframework.batch.core.ItemWriteListenerpublic void afterWrite(List items)
afterWrite in interface org.springframework.batch.core.ItemWriteListenerpublic void onWriteError(Exception exception, List items)
onWriteError in interface org.springframework.batch.core.ItemWriteListenerpublic int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2019 Pivotal Software, Inc.. All rights reserved.