类 BatchMessageIdImpl
- java.lang.Object
-
- org.apache.pulsar.client.impl.MessageIdImpl
-
- org.apache.pulsar.client.impl.BatchMessageIdImpl
-
- 所有已实现的接口:
java.io.Serializable
,java.lang.Comparable<org.apache.pulsar.client.api.MessageId>
,org.apache.pulsar.client.api.MessageId
public class BatchMessageIdImpl extends MessageIdImpl
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 org.apache.pulsar.client.impl.MessageIdImpl
entryId, ledgerId, partitionIndex
-
-
构造器概要
构造器 构造器 说明 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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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
getOutstandingAcksInSameBatch()
int
hashCode()
MessageIdImpl
prevBatchMessageId()
byte[]
toByteArray()
java.lang.String
toString()
-
从类继承的方法 org.apache.pulsar.client.impl.MessageIdImpl
convertToMessageIdImpl, fromByteArray, fromByteArrayWithTopic, fromByteArrayWithTopic, getEntryId, getLedgerId, getPartitionIndex, toByteArray
-
-
-
-
构造器详细资料
-
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)
-
-
方法详细资料
-
getBatchIndex
public int getBatchIndex()
-
compareTo
public int compareTo(org.apache.pulsar.client.api.MessageId o)
- 指定者:
compareTo
在接口中java.lang.Comparable<org.apache.pulsar.client.api.MessageId>
- 覆盖:
compareTo
在类中MessageIdImpl
-
hashCode
public int hashCode()
- 覆盖:
hashCode
在类中MessageIdImpl
-
equals
public boolean equals(java.lang.Object o)
- 覆盖:
equals
在类中MessageIdImpl
-
toString
public java.lang.String toString()
- 覆盖:
toString
在类中MessageIdImpl
-
toByteArray
public byte[] toByteArray()
- 指定者:
toByteArray
在接口中org.apache.pulsar.client.api.MessageId
- 覆盖:
toByteArray
在类中MessageIdImpl
-
ackIndividual
public boolean ackIndividual()
-
ackCumulative
public boolean ackCumulative()
-
getOutstandingAcksInSameBatch
public int getOutstandingAcksInSameBatch()
-
getBatchSize
public int getBatchSize()
-
prevBatchMessageId
public MessageIdImpl prevBatchMessageId()
-
getAcker
public BatchMessageAcker getAcker()
-
-