Package org.apache.pulsar.client.impl
Class BatchMessageIdImpl
- java.lang.Object
-
- org.apache.pulsar.client.impl.MessageIdImpl
-
- org.apache.pulsar.client.impl.BatchMessageIdImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<org.apache.pulsar.client.api.MessageId>,org.apache.pulsar.client.api.MessageId
public class BatchMessageIdImpl extends MessageIdImpl
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.pulsar.client.impl.MessageIdImpl
entryId, ledgerId, partitionIndex
-
-
Constructor Summary
Constructors Constructor Description BatchMessageIdImpl(long ledgerId, long entryId, int partitionIndex, int batchIndex)BatchMessageIdImpl(long ledgerId, long entryId, int partitionIndex, int batchIndex, int batchSize, BatchMessageAcker acker)BatchMessageIdImpl(MessageIdImpl other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanackCumulative()booleanackIndividual()intcompareTo(org.apache.pulsar.client.api.MessageId o)booleanequals(java.lang.Object o)BatchMessageAckergetAcker()intgetBatchIndex()intgetBatchSize()intgetOriginalBatchSize()intgetOutstandingAcksInSameBatch()inthashCode()MessageIdImplprevBatchMessageId()byte[]toByteArray()MessageIdImpltoMessageIdImpl()java.lang.StringtoString()-
Methods inherited from class org.apache.pulsar.client.impl.MessageIdImpl
convertToMessageIdImpl, fromByteArray, fromByteArrayWithTopic, fromByteArrayWithTopic, getEntryId, getLedgerId, getPartitionIndex, toByteArray
-
-
-
-
Constructor Detail
-
BatchMessageIdImpl
public BatchMessageIdImpl(long ledgerId, long entryId, int partitionIndex, int batchIndex)
-
BatchMessageIdImpl
public BatchMessageIdImpl(long ledgerId, long entryId, int partitionIndex, int batchIndex, int batchSize, BatchMessageAcker acker)
-
BatchMessageIdImpl
public BatchMessageIdImpl(MessageIdImpl other)
-
-
Method Detail
-
getBatchIndex
public int getBatchIndex()
-
compareTo
public int compareTo(org.apache.pulsar.client.api.MessageId o)
- Specified by:
compareToin interfacejava.lang.Comparable<org.apache.pulsar.client.api.MessageId>- Overrides:
compareToin classMessageIdImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMessageIdImpl
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classMessageIdImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classMessageIdImpl
-
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArrayin interfaceorg.apache.pulsar.client.api.MessageId- Overrides:
toByteArrayin classMessageIdImpl
-
ackIndividual
public boolean ackIndividual()
-
ackCumulative
public boolean ackCumulative()
-
getOutstandingAcksInSameBatch
public int getOutstandingAcksInSameBatch()
-
getBatchSize
public int getBatchSize()
-
getOriginalBatchSize
public int getOriginalBatchSize()
-
prevBatchMessageId
public MessageIdImpl prevBatchMessageId()
-
toMessageIdImpl
public MessageIdImpl toMessageIdImpl()
-
getAcker
public BatchMessageAcker getAcker()
-
-