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 SummaryModifier and TypeMethodDescriptiongetKey()default POSITIONdefault intintdefault PubSubMessageHeaderslongdefault PubSubTopicgetTopic()default StringgetValue()booleanMethods inherited from interface com.linkedin.venice.memory.MeasurablegetHeapSize
- 
Method Details- 
getKeyK getKey()- Returns:
- the key part of this message
 
- 
getValueV getValue()- Returns:
- the value part of this message
 
- 
getTopicPartitionPubSubTopicPartition getTopicPartition()- Returns:
- the topic-partition this message belongs to
 
- 
getOffset- Returns:
- the offset of this message in the underlying topic-partition
 
- 
getPositionPOSITION getPosition()
- 
getPubSubMessageTimelong getPubSubMessageTime()- Returns:
- the timestamp at which the message was persisted in the pub sub system
 
- 
getPayloadSizeint getPayloadSize()- Returns:
- the size in bytes of the key + value.
 
- 
getTopicName
- 
getTopic
- 
getPartitiondefault int getPartition()
- 
isEndOfBootstrapboolean isEndOfBootstrap()- Returns:
- whether this message marks the end of bootstrap.
 
- 
getPubSubMessageHeaders
 
-