public class BatchMessageIdImpl extends MessageIdImpl
entryId, ledgerId, partitionIndex
Constructor and Description |
---|
BatchMessageIdImpl(long ledgerId,
long entryId,
int partitionIndex,
int batchIndex) |
BatchMessageIdImpl(long ledgerId,
long entryId,
int partitionIndex,
int batchIndex,
org.apache.pulsar.client.impl.BatchMessageAcker acker) |
BatchMessageIdImpl(MessageIdImpl other) |
Modifier and Type | Method and Description |
---|---|
boolean |
ackCumulative() |
boolean |
ackIndividual() |
int |
compareTo(MessageId o) |
boolean |
equals(Object obj) |
org.apache.pulsar.client.impl.BatchMessageAcker |
getAcker() |
int |
getBatchIndex() |
int |
getBatchSize() |
int |
getOutstandingAcksInSameBatch() |
int |
hashCode() |
MessageIdImpl |
prevBatchMessageId() |
byte[] |
toByteArray()
Serialize the message ID into a byte array
|
String |
toString() |
fromByteArray, getEntryId, getLedgerId, getPartitionIndex, toByteArray
public BatchMessageIdImpl(long ledgerId, long entryId, int partitionIndex, int batchIndex)
public BatchMessageIdImpl(long ledgerId, long entryId, int partitionIndex, int batchIndex, org.apache.pulsar.client.impl.BatchMessageAcker acker)
public BatchMessageIdImpl(MessageIdImpl other)
public int getBatchIndex()
public int compareTo(MessageId o)
compareTo
in interface Comparable<MessageId>
compareTo
in class MessageIdImpl
public int hashCode()
hashCode
in class MessageIdImpl
public boolean equals(Object obj)
equals
in class MessageIdImpl
public String toString()
toString
in class MessageIdImpl
public byte[] toByteArray()
MessageId
toByteArray
in interface MessageId
toByteArray
in class MessageIdImpl
public boolean ackIndividual()
public boolean ackCumulative()
public int getOutstandingAcksInSameBatch()
public int getBatchSize()
public MessageIdImpl prevBatchMessageId()
public org.apache.pulsar.client.impl.BatchMessageAcker getAcker()
Copyright © 2017–2018 Apache Software Foundation. All rights reserved.