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()longgetIndex()Deprecated.getKey()byte[]byte[]getProperty(String name) longintbyte[]longGet the topic name with partition part of this message.Deprecated.getValue()booleanbooleanbooleanhasIndex()booleanhasKey()booleanbooleanhasProperty(String name) booleanvoidrelease()intsize()
-
Method Details
-
getTopicName
Get the topic name with partition part of this message.- Specified by:
getTopicNamein 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:
getMessageIdin interfaceMessage<T>
-
getInnerMessageId
Deprecated. -
getProperties
- Specified by:
getPropertiesin interfaceMessage<T>
-
hasProperty
- Specified by:
hasPropertyin interfaceMessage<T>
-
getProperty
- Specified by:
getPropertyin interfaceMessage<T>
-
getData
public byte[] getData() -
size
public int size() -
getPublishTime
public long getPublishTime()- Specified by:
getPublishTimein interfaceMessage<T>
-
getEventTime
public long getEventTime()- Specified by:
getEventTimein interfaceMessage<T>
-
getSequenceId
public long getSequenceId()- Specified by:
getSequenceIdin interfaceMessage<T>
-
getProducerName
- Specified by:
getProducerNamein interfaceMessage<T>
-
hasKey
public boolean hasKey() -
getKey
-
hasBase64EncodedKey
public boolean hasBase64EncodedKey()- Specified by:
hasBase64EncodedKeyin interfaceMessage<T>
-
getKeyBytes
public byte[] getKeyBytes()- Specified by:
getKeyBytesin interfaceMessage<T>
-
hasOrderingKey
public boolean hasOrderingKey()- Specified by:
hasOrderingKeyin interfaceMessage<T>
-
getOrderingKey
public byte[] getOrderingKey()- Specified by:
getOrderingKeyin interfaceMessage<T>
-
getValue
-
getEncryptionCtx
- Specified by:
getEncryptionCtxin interfaceMessage<T>
-
getRedeliveryCount
public int getRedeliveryCount()- Specified by:
getRedeliveryCountin interfaceMessage<T>
-
getSchemaVersion
public byte[] getSchemaVersion()- Specified by:
getSchemaVersionin interfaceMessage<T>
-
isReplicated
public boolean isReplicated()- Specified by:
isReplicatedin interfaceMessage<T>
-
getReplicatedFrom
- Specified by:
getReplicatedFromin interfaceMessage<T>
-
getMessage
-
getSchemaInternal
-
getReaderSchema
- Specified by:
getReaderSchemain interfaceMessage<T>
-
release
public void release() -
hasBrokerPublishTime
public boolean hasBrokerPublishTime()- Specified by:
hasBrokerPublishTimein interfaceMessage<T>
-
getBrokerPublishTime
- Specified by:
getBrokerPublishTimein interfaceMessage<T>
-
hasIndex
public boolean hasIndex() -
getIndex
-