R
- The type of the item returned in readItem()
.C
- The type of the Checkpoint. See doCheckpointInfo()
and doRead()
public abstract class TypedItemReader<R,C extends Serializable> extends Object implements javax.batch.api.chunk.ItemReader
Constructor and Description |
---|
TypedItemReader() |
Modifier and Type | Method and Description |
---|---|
Serializable |
checkpointInfo() |
protected abstract C |
doCheckpointInfo() |
protected abstract void |
doOpen(C checkpoint) |
protected abstract R |
doRead() |
void |
open(Serializable checkpoint) |
Object |
readItem() |
protected abstract void doOpen(C checkpoint)
protected abstract R doRead()
protected abstract C doCheckpointInfo()
public void open(Serializable checkpoint) throws Exception
open
in interface javax.batch.api.chunk.ItemReader
Exception
public Object readItem() throws Exception
readItem
in interface javax.batch.api.chunk.ItemReader
Exception
public Serializable checkpointInfo() throws Exception
checkpointInfo
in interface javax.batch.api.chunk.ItemReader
Exception
Copyright © 2021 The Apache Software Foundation. All rights reserved.