Class SimplePubSubProduceResultImpl
java.lang.Object
com.linkedin.venice.pubsub.adapter.SimplePubSubProduceResultImpl
- All Implemented Interfaces:
PubSubProduceResult
- Direct Known Subclasses:
ApacheKafkaProduceResult
A simple implementation of PubSubProduceResult interface for testing purposes.
-
Constructor Summary
ConstructorDescriptionSimplePubSubProduceResultImpl
(String topic, int partition, long offset, int serializedSize) -
Method Summary
-
Constructor Details
-
SimplePubSubProduceResultImpl
-
-
Method Details
-
getOffset
public long getOffset()Description copied from interface:PubSubProduceResult
The offset of the record in the topic/partition.- Specified by:
getOffset
in interfacePubSubProduceResult
-
getSerializedSize
public int getSerializedSize()Description copied from interface:PubSubProduceResult
Sum of the size of the serialized, uncompressed key and value in bytes.- Specified by:
getSerializedSize
in interfacePubSubProduceResult
-
getTopic
Description copied from interface:PubSubProduceResult
The topic the record was appended to- Specified by:
getTopic
in interfacePubSubProduceResult
-
getPartition
public int getPartition()Description copied from interface:PubSubProduceResult
The partition the record was sent to- Specified by:
getPartition
in interfacePubSubProduceResult
-
toString
-