接口 Entry

所有已知实现类:
EntryImpl

@LimitedPrivate @Stable public interface Entry
An Entry represent a ledger entry data and its associated position.
  • 方法详细资料

    • getData

      byte[] getData()
      返回:
      the data
    • getDataAndRelease

      byte[] getDataAndRelease()
    • getLength

      int getLength()
      返回:
      the entry length in bytes
    • getDataBuffer

      io.netty.buffer.ByteBuf getDataBuffer()
      返回:
      the data buffer for the entry
    • getPosition

      Position getPosition()
      返回:
      the position at which the entry was stored
    • getLedgerId

      long getLedgerId()
      返回:
      ledgerId of the position
    • getEntryId

      long getEntryId()
      返回:
      entryId of the position
    • release

      boolean release()
      Release the resources (data) allocated for this entry and recycle if all the resources are deallocated (ref-count of data reached to 0).