Package org.opendaylight.raft.journal
Interface EntryReader
- All Superinterfaces:
 AutoCloseable
A reader of 
RaftJournal entries.- 
Method Summary
 
- 
Method Details
- 
nextIndex
long nextIndex()Returns the next reader index.- Returns:
 - The next reader index
 
 - 
tryNext
Try to move to the next binary data block.- Type Parameters:
 T- Internal representation type- Parameters:
 mapper- callback to be invoked on binary data- Returns:
 - processed binary data, or 
null 
 - 
reset
void reset()Resets the reader to the start. - 
reset
void reset(long index) Resets the reader to the given index.- Parameters:
 index- the next index to read
 - 
close
void close()- Specified by:
 closein interfaceAutoCloseable
 
 -