Package com.linkedin.venice.pubsub.api
Interface PubSubMessage<K,V,OFFSET>
- All Superinterfaces:
Measurable
- All Known Implementing Classes:
ImmutableChangeCapturePubSubMessage
,ImmutablePubSubMessage
,PubSubHelper.MutablePubSubMessage
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
default int
int
default PubSubMessageHeaders
long
default PubSubTopic
getTopic()
default String
getValue()
boolean
Methods 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
OFFSET getOffset()- Returns:
- the offset of this message in the underlying topic-partition
-
getPubSubMessageTime
long getPubSubMessageTime()- Returns:
- the timestamp at which the message was persisted in the pub sub system
-
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
-