public final class EntryImpl extends AbstractCASReferenceCounted implements Entry, Comparable<EntryImpl>, io.netty.util.ReferenceCounted
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EntryImpl other) |
static EntryImpl |
create(EntryImpl other) |
static EntryImpl |
create(org.apache.bookkeeper.client.api.LedgerEntry ledgerEntry) |
static EntryImpl |
create(long ledgerId,
long entryId,
byte[] data) |
static EntryImpl |
create(long ledgerId,
long entryId,
io.netty.buffer.ByteBuf data) |
static EntryImpl |
create(PositionImpl position,
io.netty.buffer.ByteBuf data) |
protected void |
deallocate()
Called once
AbstractCASReferenceCounted.refCnt() is equals 0. |
byte[] |
getData() |
byte[] |
getDataAndRelease() |
io.netty.buffer.ByteBuf |
getDataBuffer() |
long |
getEntryId() |
long |
getLedgerId() |
int |
getLength() |
PositionImpl |
getPosition() |
long |
getTimestamp() |
io.netty.util.ReferenceCounted |
touch(Object hint) |
refCnt, release, release, retain, retain, setRefCnt, touchpublic static EntryImpl create(org.apache.bookkeeper.client.api.LedgerEntry ledgerEntry)
public static EntryImpl create(long ledgerId, long entryId, byte[] data)
public static EntryImpl create(long ledgerId, long entryId, io.netty.buffer.ByteBuf data)
public static EntryImpl create(PositionImpl position, io.netty.buffer.ByteBuf data)
public long getTimestamp()
public io.netty.buffer.ByteBuf getDataBuffer()
getDataBuffer in interface Entrypublic byte[] getDataAndRelease()
getDataAndRelease in interface Entrypublic int getLength()
public PositionImpl getPosition()
getPosition in interface Entrypublic long getLedgerId()
getLedgerId in interface Entrypublic long getEntryId()
getEntryId in interface Entrypublic int compareTo(EntryImpl other)
compareTo in interface Comparable<EntryImpl>public io.netty.util.ReferenceCounted touch(Object hint)
touch in interface io.netty.util.ReferenceCountedprotected void deallocate()
AbstractCASReferenceCountedAbstractCASReferenceCounted.refCnt() is equals 0.deallocate in class AbstractCASReferenceCountedCopyright © 2017–2021 Apache Software Foundation. All rights reserved.