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 boolean
ackCumulative()
boolean
ackIndividual()
int
compareTo(org.apache.pulsar.client.api.MessageId o)
boolean
equals(java.lang.Object o)
BatchMessageAcker
getAcker()
int
getBatchIndex()
int
getBatchSize()
int
getOriginalBatchSize()
int
getOutstandingAcksInSameBatch()
int
hashCode()
MessageIdImpl
prevBatchMessageId()
byte[]
toByteArray()
MessageIdImpl
toMessageIdImpl()
java.lang.String
toString()
-
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:
compareTo
in interfacejava.lang.Comparable<org.apache.pulsar.client.api.MessageId>
- Overrides:
compareTo
in classMessageIdImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMessageIdImpl
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classMessageIdImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classMessageIdImpl
-
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArray
in interfaceorg.apache.pulsar.client.api.MessageId
- Overrides:
toByteArray
in 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()
-
-