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()
No-op.
|
int |
getOffset() |
void |
incrementOffset() |
void |
open(ExecutionContext executionContext)
No-op.
|
void |
registerItemStream(ItemStream stream) |
void |
resetOffset() |
void |
setChunkSize(int chunkSize) |
void |
setItemReader(ItemReader<?> reader) |
void |
update(ExecutionContext executionContext)
Return empty
ExecutionContext . |
getExecutionContextKey, setExecutionContextName, setName
public 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
ItemStreamSupport
close
in interface ItemStream
close
in class ItemStreamSupport
ItemStreamException
ItemStream.close()
public void open(ExecutionContext executionContext) throws ItemStreamException
ItemStreamSupport
open
in interface ItemStream
open
in class ItemStreamSupport
ItemStreamException
ItemStream.open(ExecutionContext)
public void update(ExecutionContext executionContext) throws ItemStreamException
ItemStreamSupport
ExecutionContext
.update
in interface ItemStream
update
in class ItemStreamSupport
executionContext
- to be updatedItemStreamException
ItemStream.update(ExecutionContext)
Copyright © 2014 Pivotal. All rights reserved.