Package org.apache.pulsar.client.impl
Class TopicMessageImpl<T>
java.lang.Object
org.apache.pulsar.client.impl.TopicMessageImpl<T>
- All Implemented Interfaces:
Message<T>
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
long
getIndex()
Deprecated.getKey()
byte[]
byte[]
getProperty
(String name) long
int
byte[]
long
Get the topic name with partition part of this message.Deprecated.getValue()
boolean
boolean
boolean
hasIndex()
boolean
hasKey()
boolean
boolean
hasProperty
(String name) boolean
void
release()
int
size()
-
Method Details
-
getTopicName
Get the topic name with partition part of this message.- Specified by:
getTopicName
in interfaceMessage<T>
- Returns:
- the name of the topic on which this message was published
-
getTopicPartitionName
Deprecated.Get the topic name which contains partition part for this message.- Returns:
- the topic name which contains Partition part
-
getMessageId
- Specified by:
getMessageId
in interfaceMessage<T>
-
getInnerMessageId
Deprecated. -
getProperties
- Specified by:
getProperties
in interfaceMessage<T>
-
hasProperty
- Specified by:
hasProperty
in interfaceMessage<T>
-
getProperty
- Specified by:
getProperty
in interfaceMessage<T>
-
getData
public byte[] getData() -
size
public int size() -
getPublishTime
public long getPublishTime()- Specified by:
getPublishTime
in interfaceMessage<T>
-
getEventTime
public long getEventTime()- Specified by:
getEventTime
in interfaceMessage<T>
-
getSequenceId
public long getSequenceId()- Specified by:
getSequenceId
in interfaceMessage<T>
-
getProducerName
- Specified by:
getProducerName
in interfaceMessage<T>
-
hasKey
public boolean hasKey() -
getKey
-
hasBase64EncodedKey
public boolean hasBase64EncodedKey()- Specified by:
hasBase64EncodedKey
in interfaceMessage<T>
-
getKeyBytes
public byte[] getKeyBytes()- Specified by:
getKeyBytes
in interfaceMessage<T>
-
hasOrderingKey
public boolean hasOrderingKey()- Specified by:
hasOrderingKey
in interfaceMessage<T>
-
getOrderingKey
public byte[] getOrderingKey()- Specified by:
getOrderingKey
in interfaceMessage<T>
-
getValue
-
getEncryptionCtx
- Specified by:
getEncryptionCtx
in interfaceMessage<T>
-
getRedeliveryCount
public int getRedeliveryCount()- Specified by:
getRedeliveryCount
in interfaceMessage<T>
-
getSchemaVersion
public byte[] getSchemaVersion()- Specified by:
getSchemaVersion
in interfaceMessage<T>
-
isReplicated
public boolean isReplicated()- Specified by:
isReplicated
in interfaceMessage<T>
-
getReplicatedFrom
- Specified by:
getReplicatedFrom
in interfaceMessage<T>
-
getMessage
-
getSchemaInternal
-
getReaderSchema
- Specified by:
getReaderSchema
in interfaceMessage<T>
-
release
public void release() -
hasBrokerPublishTime
public boolean hasBrokerPublishTime()- Specified by:
hasBrokerPublishTime
in interfaceMessage<T>
-
getBrokerPublishTime
- Specified by:
getBrokerPublishTime
in interfaceMessage<T>
-
hasIndex
public boolean hasIndex() -
getIndex
-