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
ConstructorsConstructorDescriptionImmutableChangeCapturePubSubMessage(K key, V value, PubSubTopicPartition topicPartition, PubSubPosition pubSubPosition, long timestamp, int payloadSize, boolean isEndOfBootstrap, long consumerSequenceId) ImmutableChangeCapturePubSubMessage(K key, V value, PubSubTopicPartition topicPartition, PubSubPosition pubSubPosition, long timestamp, int payloadSize, boolean isEndOfBootstrap, long consumerSequenceId, int writerSchemaId, ByteBuffer replicationMetadataPayload) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.linkedin.venice.pubsub.api.PubSubMessage
getOffset, getPartition, getPubSubMessageHeaders, getTopic, getTopicName
-
Constructor Details
-
ImmutableChangeCapturePubSubMessage
public ImmutableChangeCapturePubSubMessage(K key, V value, PubSubTopicPartition topicPartition, PubSubPosition pubSubPosition, long timestamp, int payloadSize, boolean isEndOfBootstrap, long consumerSequenceId) -
ImmutableChangeCapturePubSubMessage
public ImmutableChangeCapturePubSubMessage(K key, V value, PubSubTopicPartition topicPartition, PubSubPosition pubSubPosition, long timestamp, int payloadSize, boolean isEndOfBootstrap, long consumerSequenceId, int writerSchemaId, ByteBuffer replicationMetadataPayload)
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfacePubSubMessage<K,V, VeniceChangeCoordinate> - Returns:
- the key part of this message
-
getValue
- Specified by:
getValuein interfacePubSubMessage<K,V, VeniceChangeCoordinate> - Returns:
- the value part of this message
-
getTopicPartition
- Specified by:
getTopicPartitionin interfacePubSubMessage<K,V, VeniceChangeCoordinate> - Returns:
- the topic-partition this message belongs to
-
getPosition
- Specified by:
getPositionin interfacePubSubMessage<K,V, VeniceChangeCoordinate>
-
getPubSubMessageTime
public long getPubSubMessageTime()- Specified by:
getPubSubMessageTimein interfacePubSubMessage<K,V, VeniceChangeCoordinate> - Returns:
- the timestamp at which the message was persisted in the pub sub system
-
getPayloadSize
public int getPayloadSize()- Specified by:
getPayloadSizein interfacePubSubMessage<K,V, VeniceChangeCoordinate> - Returns:
- the size in bytes of the key + value.
-
isEndOfBootstrap
public boolean isEndOfBootstrap()- Specified by:
isEndOfBootstrapin interfacePubSubMessage<K,V, VeniceChangeCoordinate> - Returns:
- whether this message marks the end of bootstrap.
-
getWriterSchemaId
public int getWriterSchemaId() -
getReplicationMetadataPayload
-
toString
-
getHeapSize
public int getHeapSize()- Specified by:
getHeapSizein interfaceMeasurable
-