public class EventEmittingChunkListener extends Object implements org.springframework.batch.core.ChunkListener, org.springframework.core.Ordered
Chunk
of a batch job.
The ChunkListener.beforeChunk(ChunkContext)
and
ChunkListener.afterChunk(ChunkContext)
are both no-ops in this implementation.
ChunkListener.afterChunkError(ChunkContext)
.Constructor and Description |
---|
EventEmittingChunkListener(org.springframework.messaging.MessageChannel output) |
EventEmittingChunkListener(org.springframework.messaging.MessageChannel output,
int order) |
Modifier and Type | Method and Description |
---|---|
void |
afterChunk(org.springframework.batch.core.scope.context.ChunkContext context) |
void |
afterChunkError(org.springframework.batch.core.scope.context.ChunkContext context) |
void |
beforeChunk(org.springframework.batch.core.scope.context.ChunkContext context) |
int |
getOrder() |
public EventEmittingChunkListener(org.springframework.messaging.MessageChannel output)
public EventEmittingChunkListener(org.springframework.messaging.MessageChannel output, int order)
public void beforeChunk(org.springframework.batch.core.scope.context.ChunkContext context)
beforeChunk
in interface org.springframework.batch.core.ChunkListener
public void afterChunk(org.springframework.batch.core.scope.context.ChunkContext context)
afterChunk
in interface org.springframework.batch.core.ChunkListener
public void afterChunkError(org.springframework.batch.core.scope.context.ChunkContext context)
afterChunkError
in interface org.springframework.batch.core.ChunkListener
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.