public class ChunkMonitor extends ItemStreamSupport
ThreadLocal to manage the state and co-ordinate between the caller
and the wrapped ItemStream.| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkMonitor.ChunkMonitorData |
| Constructor and Description |
|---|
ChunkMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getOffset() |
void |
incrementOffset() |
void |
open(ExecutionContext executionContext) |
void |
registerItemStream(ItemStream stream) |
void |
resetOffset() |
void |
setChunkSize(int chunkSize) |
void |
setItemReader(ItemReader<?> reader) |
void |
update(ExecutionContext executionContext) |
getExecutionContextKey, setExecutionContextNamepublic void registerItemStream(ItemStream stream)
stream - the stream to setpublic void setItemReader(ItemReader<?> reader)
reader - the reader to setpublic void incrementOffset()
public int getOffset()
public void resetOffset()
public void setChunkSize(int chunkSize)
public void close()
throws ItemStreamException
close in interface ItemStreamclose in class ItemStreamSupportItemStreamExceptionpublic void open(ExecutionContext executionContext) throws ItemStreamException
open in interface ItemStreamopen in class ItemStreamSupportItemStreamExceptionpublic void update(ExecutionContext executionContext) throws ItemStreamException
update in interface ItemStreamupdate in class ItemStreamSupportItemStreamExceptionCopyright © 2013. All rights reserved.