public class EventEmittingItemReadListener extends Object implements org.springframework.batch.core.ItemReadListener, org.springframework.core.Ordered
ItemReader of a batch job.
The ItemReadListener.beforeRead() and
ItemReadListener.afterRead(Object) are both no-ops in this implementation.
ItemReadListener.onReadError(Exception) provides the exception via the
BatchJobHeaders.BATCH_EXCEPTION message header.| Constructor and Description |
|---|
EventEmittingItemReadListener(org.springframework.messaging.MessageChannel output) |
EventEmittingItemReadListener(org.springframework.messaging.MessageChannel output,
int order) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRead(Object item) |
void |
beforeRead() |
int |
getOrder() |
void |
onReadError(Exception ex) |
public EventEmittingItemReadListener(org.springframework.messaging.MessageChannel output)
public EventEmittingItemReadListener(org.springframework.messaging.MessageChannel output,
int order)
public void beforeRead()
beforeRead in interface org.springframework.batch.core.ItemReadListenerpublic void afterRead(Object item)
afterRead in interface org.springframework.batch.core.ItemReadListenerpublic void onReadError(Exception ex)
onReadError in interface org.springframework.batch.core.ItemReadListenerpublic int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2019 Pivotal Software, Inc.. All rights reserved.