类 EntryImpl

所有已实现的接口:
io.netty.util.ReferenceCounted, Comparable<EntryImpl>, Entry

public final class EntryImpl extends AbstractCASReferenceCounted implements Entry, Comparable<EntryImpl>, io.netty.util.ReferenceCounted
  • 方法详细资料

    • create

      public static EntryImpl create(org.apache.bookkeeper.client.api.LedgerEntry ledgerEntry)
    • create

      public static EntryImpl create(long ledgerId, long entryId, byte[] data)
    • create

      public static EntryImpl create(long ledgerId, long entryId, io.netty.buffer.ByteBuf data)
    • create

      public static EntryImpl create(PositionImpl position, io.netty.buffer.ByteBuf data)
    • create

      public static EntryImpl create(EntryImpl other)
    • getTimestamp

      public long getTimestamp()
    • getDataBuffer

      public io.netty.buffer.ByteBuf getDataBuffer()
      指定者:
      getDataBuffer 在接口中 Entry
      返回:
      the data buffer for the entry
    • getData

      public byte[] getData()
      指定者:
      getData 在接口中 Entry
      返回:
      the data
    • getDataAndRelease

      public byte[] getDataAndRelease()
      指定者:
      getDataAndRelease 在接口中 Entry
    • getLength

      public int getLength()
      指定者:
      getLength 在接口中 Entry
      返回:
      the entry length in bytes
    • getPosition

      public PositionImpl 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

      public int compareTo(EntryImpl other)
      指定者:
      compareTo 在接口中 Comparable<EntryImpl>
    • touch

      public io.netty.util.ReferenceCounted touch(Object hint)
      指定者:
      touch 在接口中 io.netty.util.ReferenceCounted
    • deallocate

      protected void deallocate()
      从类复制的说明: AbstractCASReferenceCounted
      Called once AbstractCASReferenceCounted.refCnt() is equals 0.
      指定者:
      deallocate 在类中 AbstractCASReferenceCounted