类 MessageIdImpl
java.lang.Object
org.apache.pulsar.client.impl.MessageIdImpl
- 所有已实现的接口:
Serializable,Comparable<MessageId>,MessageId,MessageIdAdv
- 直接已知子类:
BatchMessageIdImpl,ChunkMessageIdImpl
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明protected final longprotected final longprotected final int -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanstatic MessageIdfromByteArray(byte[] data) static MessageIdfromByteArrayWithTopic(byte[] data, String topicName) static MessageIdfromByteArrayWithTopic(byte[] data, TopicName topicName) longlongintinthashCode()byte[]protected byte[]toByteArray(int batchIndex, int batchSize) toString()protected MessageIdDatawriteMessageIdData(MessageIdData msgId, int batchIndex, int batchSize) 从接口继承的方法 org.apache.pulsar.client.api.MessageIdAdv
compareTo, getAckSet, getBatchIndex, getBatchSize, getFirstChunkMessageId
-
字段详细资料
-
ledgerId
protected final long ledgerId -
entryId
protected final long entryId -
partitionIndex
protected final int partitionIndex
-
-
构造器详细资料
-
MessageIdImpl
public MessageIdImpl(long ledgerId, long entryId, int partitionIndex)
-
-
方法详细资料
-
getLedgerId
public long getLedgerId()- 指定者:
getLedgerId在接口中MessageIdAdv
-
getEntryId
public long getEntryId()- 指定者:
getEntryId在接口中MessageIdAdv
-
getPartitionIndex
public int getPartitionIndex()- 指定者:
getPartitionIndex在接口中MessageIdAdv
-
hashCode
public int hashCode() -
equals
-
toString
-
fromByteArray
- 抛出:
IOException
-
fromByteArrayWithTopic
- 抛出:
IOException
-
fromByteArrayWithTopic
- 抛出:
IOException
-
writeMessageIdData
-
toByteArray
protected byte[] toByteArray(int batchIndex, int batchSize) -
toByteArray
public byte[] toByteArray()- 指定者:
toByteArray在接口中MessageId
-