类 EntryImpl
java.lang.Object
org.apache.bookkeeper.mledger.util.AbstractCASReferenceCounted
org.apache.bookkeeper.mledger.impl.EntryImpl
- 所有已实现的接口:
io.netty.util.ReferenceCounted,Comparable<EntryImpl>,Entry
public final class EntryImpl
extends AbstractCASReferenceCounted
implements Entry, Comparable<EntryImpl>, io.netty.util.ReferenceCounted
-
方法概要
修饰符和类型方法说明intstatic EntryImplcreate(long ledgerId, long entryId, byte[] data) static EntryImplcreate(long ledgerId, long entryId, io.netty.buffer.ByteBuf data) static EntryImplcreate(org.apache.bookkeeper.client.api.LedgerEntry ledgerEntry) static EntryImplstatic EntryImplcreate(PositionImpl position, io.netty.buffer.ByteBuf data) protected voidCalled onceAbstractCASReferenceCounted.refCnt()is equals 0.byte[]getData()byte[]io.netty.buffer.ByteBuflonglongintlongio.netty.util.ReferenceCounted从类继承的方法 org.apache.bookkeeper.mledger.util.AbstractCASReferenceCounted
refCnt, release, release, retain, retain, setRefCnt, touch从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 io.netty.util.ReferenceCounted
refCnt, release, release, retain, retain, touch
-
方法详细资料
-
create
-
create
-
create
-
create
-
create
-
getTimestamp
public long getTimestamp() -
getDataBuffer
public io.netty.buffer.ByteBuf getDataBuffer()- 指定者:
getDataBuffer在接口中Entry- 返回:
- the data buffer for the entry
-
getData
public byte[] getData() -
getDataAndRelease
public byte[] getDataAndRelease()- 指定者:
getDataAndRelease在接口中Entry
-
getLength
public int getLength() -
getPosition
- 指定者:
getPosition在接口中Entry- 返回:
- the position at which the entry was stored
-
getLedgerId
public long getLedgerId()- 指定者:
getLedgerId在接口中Entry- 返回:
- ledgerId of the position
-
getEntryId
public long getEntryId()- 指定者:
getEntryId在接口中Entry- 返回:
- entryId of the position
-
compareTo
- 指定者:
compareTo在接口中Comparable<EntryImpl>
-
touch
- 指定者:
touch在接口中io.netty.util.ReferenceCounted
-
deallocate
protected void deallocate()从类复制的说明:AbstractCASReferenceCountedCalled onceAbstractCASReferenceCounted.refCnt()is equals 0.- 指定者:
deallocate在类中AbstractCASReferenceCounted
-