Package com.linkedin.venice.writer
Class ProducerBufferRecord<V,U>
java.lang.Object
com.linkedin.venice.writer.ProducerBufferRecord<V,U>
- All Implemented Interfaces:
Measurable
-
Constructor Summary
ConstructorsConstructorDescriptionProducerBufferRecord
(MessageType messageType, byte[] serializedKey, V value, U update, int schemaId, int protocolId, PubSubProducerCallback callback, long logicalTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependentCallback
(PubSubProducerCallback callback) int
long
int
int
byte[]
getValue()
void
setProduceResultFuture
(CompletableFuture<PubSubProduceResult> produceResultFuture) void
setSkipProduce
(boolean shouldSkipProduce) boolean
-
Constructor Details
-
ProducerBufferRecord
public ProducerBufferRecord(MessageType messageType, byte[] serializedKey, V value, U update, int schemaId, int protocolId, PubSubProducerCallback callback, long logicalTimestamp)
-
-
Method Details
-
shouldSkipProduce
public boolean shouldSkipProduce() -
setSkipProduce
public void setSkipProduce(boolean shouldSkipProduce) -
getSerializedKey
public byte[] getSerializedKey() -
getValue
-
getUpdate
-
getSchemaId
public int getSchemaId() -
getProtocolId
public int getProtocolId() -
getLogicalTimestamp
public long getLogicalTimestamp() -
getMessageType
-
getDependentCallbackList
-
addDependentCallback
-
getCallback
-
getProduceResultFuture
-
setProduceResultFuture
-
getHeapSize
public int getHeapSize()- Specified by:
getHeapSize
in interfaceMeasurable
-