Class EntryAndMetadata

java.lang.Object
org.apache.pulsar.broker.service.EntryAndMetadata
All Implemented Interfaces:
org.apache.bookkeeper.mledger.Entry

public class EntryAndMetadata extends Object implements org.apache.bookkeeper.mledger.Entry
  • Method Details

    • create

      public static EntryAndMetadata create(org.apache.bookkeeper.mledger.Entry entry, org.apache.pulsar.common.api.proto.MessageMetadata metadata)
    • getStickyKey

      public byte[] getStickyKey()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getData

      public byte[] getData()
      Specified by:
      getData in interface org.apache.bookkeeper.mledger.Entry
    • getDataAndRelease

      public byte[] getDataAndRelease()
      Specified by:
      getDataAndRelease in interface org.apache.bookkeeper.mledger.Entry
    • getLength

      public int getLength()
      Specified by:
      getLength in interface org.apache.bookkeeper.mledger.Entry
    • getDataBuffer

      public io.netty.buffer.ByteBuf getDataBuffer()
      Specified by:
      getDataBuffer in interface org.apache.bookkeeper.mledger.Entry
    • getPosition

      public org.apache.bookkeeper.mledger.Position getPosition()
      Specified by:
      getPosition in interface org.apache.bookkeeper.mledger.Entry
    • getLedgerId

      public long getLedgerId()
      Specified by:
      getLedgerId in interface org.apache.bookkeeper.mledger.Entry
    • getEntryId

      public long getEntryId()
      Specified by:
      getEntryId in interface org.apache.bookkeeper.mledger.Entry
    • release

      public boolean release()
      Specified by:
      release in interface org.apache.bookkeeper.mledger.Entry