Class PendingAckMetadata
- java.lang.Object
-
- org.apache.pulsar.broker.transaction.pendingack.proto.PendingAckMetadata
-
public final class PendingAckMetadata extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PendingAckMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAckSet(long ackSet)PendingAckMetadataclear()PendingAckMetadataclearAckSet()PendingAckMetadataclearBatchSize()PendingAckMetadataclearEntryId()PendingAckMetadataclearLedgerId()PendingAckMetadatacopyFrom(PendingAckMetadata _other)longgetAckSetAt(int idx)intgetAckSetsCount()intgetBatchSize()longgetEntryId()longgetLedgerId()intgetSerializedSize()booleanhasBatchSize()booleanhasEntryId()booleanhasLedgerId()voidparseFrom(byte[] a)voidparseFrom(io.netty.buffer.ByteBuf _buffer, int _size)PendingAckMetadatasetBatchSize(int batchSize)PendingAckMetadatasetEntryId(long entryId)PendingAckMetadatasetLedgerId(long ledgerId)byte[]toByteArray()intwriteTo(io.netty.buffer.ByteBuf _b)
-
-
-
Method Detail
-
hasLedgerId
public boolean hasLedgerId()
-
getLedgerId
public long getLedgerId()
-
setLedgerId
public PendingAckMetadata setLedgerId(long ledgerId)
-
clearLedgerId
public PendingAckMetadata clearLedgerId()
-
hasEntryId
public boolean hasEntryId()
-
getEntryId
public long getEntryId()
-
setEntryId
public PendingAckMetadata setEntryId(long entryId)
-
clearEntryId
public PendingAckMetadata clearEntryId()
-
getAckSetsCount
public int getAckSetsCount()
-
getAckSetAt
public long getAckSetAt(int idx)
-
addAckSet
public void addAckSet(long ackSet)
-
clearAckSet
public PendingAckMetadata clearAckSet()
-
hasBatchSize
public boolean hasBatchSize()
-
getBatchSize
public int getBatchSize()
-
setBatchSize
public PendingAckMetadata setBatchSize(int batchSize)
-
clearBatchSize
public PendingAckMetadata clearBatchSize()
-
writeTo
public int writeTo(io.netty.buffer.ByteBuf _b)
-
getSerializedSize
public int getSerializedSize()
-
parseFrom
public void parseFrom(io.netty.buffer.ByteBuf _buffer, int _size)
-
clear
public PendingAckMetadata clear()
-
copyFrom
public PendingAckMetadata copyFrom(PendingAckMetadata _other)
-
toByteArray
public byte[] toByteArray()
-
parseFrom
public void parseFrom(byte[] a)
-
-