public interface LedgerEntries extends java.lang.AutoCloseable, java.lang.Iterable<LedgerEntry>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close to release the resources held by this instance.
|
LedgerEntry |
getEntry(long entryId)
Gets a specific LedgerEntry by entryId.
|
java.util.Iterator<LedgerEntry> |
iterator()
Get an iterator over all the ledger entries contained in the
LedgerEntries object.
|
LedgerEntry getEntry(long entryId)
entryId - the LedgerEntry idjava.util.Iterator<LedgerEntry> iterator()
Calling this method does not modify the reference count of the ByteBuf in the returned LedgerEntry objects.
The caller who calls iterator() should make sure that they do not call ByteBuf.release() on the
LedgerEntry objects to avoid a double free.
All reference counts will be decremented when the containing LedgerEntries object is closed via close().
iterator in interface java.lang.Iterable<LedgerEntry>void close()
close in interface java.lang.AutoCloseableCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.