Package com.linkedin.venice.pubsub.api
Interface PubSubMessage<K,V,POSITION>
- All Superinterfaces:
Measurable
- All Known Subinterfaces:
DefaultPubSubMessage
- All Known Implementing Classes:
ImmutableChangeCapturePubSubMessage,ImmutablePubSubMessage,PubSubHelper.MutableDefaultPubSubMessage
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()default POSITIONdefault intintdefault PubSubMessageHeaderslongdefault PubSubTopicgetTopic()default StringgetValue()booleanMethods inherited from interface com.linkedin.venice.memory.Measurable
getHeapSize
-
Method Details
-
getKey
K getKey()- Returns:
- the key part of this message
-
getValue
V getValue()- Returns:
- the value part of this message
-
getTopicPartition
PubSubTopicPartition getTopicPartition()- Returns:
- the topic-partition this message belongs to
-
getOffset
- Returns:
- the offset of this message in the underlying topic-partition
-
getPosition
POSITION getPosition() -
getPubSubMessageTime
long getPubSubMessageTime()- Returns:
- the best-available message timestamp. This is the pub-sub system timestamp when available and non-zero, otherwise the Venice producer timestamp embedded in the message envelope.
-
getPayloadSize
int getPayloadSize()- Returns:
- the size in bytes of the key + value.
-
getTopicName
-
getTopic
-
getPartition
default int getPartition() -
isEndOfBootstrap
boolean isEndOfBootstrap()- Returns:
- whether this message marks the end of bootstrap.
-
getPubSubMessageHeaders
-