public class LedgerEntry extends 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(long lId,
long eId) |
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() |
InputStream |
getEntryInputStream()
Returns the content of the entry.
|
long |
getLedgerId() |
long |
getLength() |
long ledgerId
long entryId
long length
io.netty.buffer.ByteBuf data
public long getLedgerId()
public long getEntryId()
public long getLength()
public byte[] getEntry()
IllegalStateException
- if this method is called twicepublic InputStream getEntryInputStream()
IllegalStateException
- if this method is called twicepublic io.netty.buffer.ByteBuf getEntryBuffer()
IllegalStateException
- if the entry has been retrieved by getEntry()
or getEntryInputStream()
.ClientConfiguration.setNettyUsePooledBuffers(boolean)
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.