public class LedgerEntry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) io.netty.buffer.ByteBuf |
data |
(package private) long |
entryId |
(package private) long |
ledgerId |
(package private) long |
length |
| Constructor and Description |
|---|
LedgerEntry(LedgerEntryImpl entry) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEntry()
Returns the content of the entry.
|
io.netty.buffer.ByteBuf |
getEntryBuffer()
Return the internal buffer that contains the entry payload.
|
long |
getEntryId() |
java.io.InputStream |
getEntryInputStream()
Returns the content of the entry.
|
long |
getLedgerId() |
long |
getLength() |
final long ledgerId
final long entryId
final long length
io.netty.buffer.ByteBuf data
LedgerEntry(LedgerEntryImpl entry)
public long getLedgerId()
public long getEntryId()
public long getLength()
public byte[] getEntry()
java.lang.IllegalStateException - if this method is called twicepublic java.io.InputStream getEntryInputStream()
java.lang.IllegalStateException - if this method is called twicepublic io.netty.buffer.ByteBuf getEntryBuffer()
Note: Using v2 wire protocol it is responsibility of the caller to ensure to release the buffer after usage.
java.lang.IllegalStateException - if the entry has been retrieved by getEntry()
or getEntryInputStream().ClientConfiguration.setNettyUsePooledBuffers(boolean)Copyright © 2011–2024 The Apache Software Foundation. All rights reserved.