Package org.apache.bookkeeper.client
Class BookKeeperAdmin.LedgerEntriesIterator
- java.lang.Object
-
- org.apache.bookkeeper.client.BookKeeperAdmin.LedgerEntriesIterator
-
- All Implemented Interfaces:
java.util.Iterator<LedgerEntry>
- Enclosing class:
- BookKeeperAdmin
class BookKeeperAdmin.LedgerEntriesIterator extends java.lang.Object implements java.util.Iterator<LedgerEntry>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LedgerEntry
currentEntry
(package private) LedgerHandle
handle
(package private) long
lastEntryId
(package private) long
ledgerId
(package private) long
nextEntryId
-
Constructor Summary
Constructors Constructor Description LedgerEntriesIterator(long ledgerId, long firstEntry, long lastEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
LedgerEntry
next()
void
remove()
-
-
-
Field Detail
-
handle
final LedgerHandle handle
-
ledgerId
final long ledgerId
-
lastEntryId
final long lastEntryId
-
nextEntryId
long nextEntryId
-
currentEntry
LedgerEntry currentEntry
-
-
Constructor Detail
-
LedgerEntriesIterator
public LedgerEntriesIterator(long ledgerId, long firstEntry, long lastEntry) throws java.lang.InterruptedException, BKException
- Throws:
java.lang.InterruptedException
BKException
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<LedgerEntry>
-
next
public LedgerEntry next()
- Specified by:
next
in interfacejava.util.Iterator<LedgerEntry>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<LedgerEntry>
-
-