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, fromByteArrayWithTopic, getEntryId, getLedgerId, getPartitionIndex, toByteArraypublic 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 MessageIdImplpublic int hashCode()
hashCode in class MessageIdImplpublic boolean equals(Object obj)
equals in class MessageIdImplpublic String toString()
toString in class MessageIdImplpublic byte[] toByteArray()
MessageIdtoByteArray in interface MessageIdtoByteArray in class MessageIdImplpublic 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.