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.ItemReadListener
public void afterRead(Object item)
afterRead
in interface org.springframework.batch.core.ItemReadListener
public void onReadError(Exception ex)
onReadError
in interface org.springframework.batch.core.ItemReadListener
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.