Package com.linkedin.davinci.consumer
Class ImmutableChangeCapturePubSubMessage<K,V>
java.lang.Object
com.linkedin.davinci.consumer.ImmutableChangeCapturePubSubMessage<K,V>
- All Implemented Interfaces:
Measurable
,PubSubMessage<K,
V, VeniceChangeCoordinate>
public class ImmutableChangeCapturePubSubMessage<K,V>
extends Object
implements PubSubMessage<K,V,VeniceChangeCoordinate>
-
Constructor Summary
ConstructorDescriptionImmutableChangeCapturePubSubMessage
(K key, V value, PubSubTopicPartition topicPartition, long offset, long timestamp, int payloadSize, boolean isEndOfBootstrap) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linkedin.venice.pubsub.api.PubSubMessage
getPartition, getPubSubMessageHeaders, getTopic, getTopicName
-
Constructor Details
-
ImmutableChangeCapturePubSubMessage
public ImmutableChangeCapturePubSubMessage(K key, V value, PubSubTopicPartition topicPartition, long offset, long timestamp, int payloadSize, boolean isEndOfBootstrap)
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfacePubSubMessage<K,
V, VeniceChangeCoordinate> - Returns:
- the key part of this message
-
getValue
- Specified by:
getValue
in interfacePubSubMessage<K,
V, VeniceChangeCoordinate> - Returns:
- the value part of this message
-
getTopicPartition
- Specified by:
getTopicPartition
in interfacePubSubMessage<K,
V, VeniceChangeCoordinate> - Returns:
- the topic-partition this message belongs to
-
getOffset
- Specified by:
getOffset
in interfacePubSubMessage<K,
V, VeniceChangeCoordinate> - Returns:
- the offset of this message in the underlying topic-partition
-
getPubSubMessageTime
public long getPubSubMessageTime()- Specified by:
getPubSubMessageTime
in interfacePubSubMessage<K,
V, VeniceChangeCoordinate> - Returns:
- the timestamp at which the message was persisted in the pub sub system
-
getPayloadSize
public int getPayloadSize()- Specified by:
getPayloadSize
in interfacePubSubMessage<K,
V, VeniceChangeCoordinate> - Returns:
- the size in bytes of the key + value.
-
isEndOfBootstrap
public boolean isEndOfBootstrap()- Specified by:
isEndOfBootstrap
in interfacePubSubMessage<K,
V, VeniceChangeCoordinate> - Returns:
- whether this message marks the end of bootstrap.
-
toString
-
getHeapSize
public int getHeapSize()- Specified by:
getHeapSize
in interfaceMeasurable
-