org.apache.bookkeeper.client
Class LedgerSequence

java.lang.Object
  extended by org.apache.bookkeeper.client.LedgerSequence
All Implemented Interfaces:
Enumeration<LedgerEntry>

public class LedgerSequence
extends Object
implements Enumeration<LedgerEntry>

Sequence of entries of a ledger. Used to return a sequence of entries upon an asynchornous read call.


Method Summary
 boolean hasMoreElements()
           
 LedgerEntry nextElement()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<LedgerEntry>

nextElement

public LedgerEntry nextElement()
                        throws NoSuchElementException
Specified by:
nextElement in interface Enumeration<LedgerEntry>
Throws:
NoSuchElementException

size

public int size()