接口 MessageIdAdv
- 所有超级接口:
Comparable<MessageId>,MessageId,Serializable
The
MessageId interface provided for advanced users.
All built-in MessageId implementations should be able to be cast to MessageIdAdv.
-
字段概要
-
方法概要
修饰符和类型方法说明default intThe default implementation ofComparable.compareTo(Object).default BitSetGet the BitSet that indicates which messages in the batch.default intGet the batch index.default intGet the batch size.longGet the entry ID.default MessageIdAdvGet the message ID of the first chunk if the current message ID represents the position of a chunked message.longGet the ledger ID.default intGet the partition index.从接口继承的方法 org.apache.pulsar.client.api.MessageId
toByteArray
-
方法详细资料
-
getLedgerId
long getLedgerId()Get the ledger ID.- 返回:
- the ledger ID
-
getEntryId
long getEntryId()Get the entry ID.- 返回:
- the entry ID
-
getPartitionIndex
default int getPartitionIndex()Get the partition index.- 返回:
- -1 if the message is from a non-partitioned topic, otherwise the non-negative partition index
-
getBatchIndex
default int getBatchIndex()Get the batch index.- 返回:
- -1 if the message is not in a batch
-
getBatchSize
default int getBatchSize()Get the batch size.- 返回:
- 0 if the message is not in a batch
-
getAckSet
Get the BitSet that indicates which messages in the batch.- 返回:
- null if the message is a non-batched message
-
getFirstChunkMessageId
Get the message ID of the first chunk if the current message ID represents the position of a chunked message.- 返回:
- null if the message is not a chunked message
-
compareTo
The default implementation ofComparable.compareTo(Object).- 指定者:
compareTo在接口中Comparable<MessageId>
-