Package com.linkedin.venice.writer
Class ProducerBufferRecord
java.lang.Object
com.linkedin.venice.writer.ProducerBufferRecord
- All Implemented Interfaces:
Measurable
-
Constructor Summary
ConstructorsConstructorDescriptionProducerBufferRecord
(MessageType messageType, byte[] serializedKey, byte[] serializedValue, byte[] serializedUpdate, int schemaId, int protocolId, PubSubProducerCallback callback, long timestamp) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependentCallback
(PubSubProducerCallback callback) void
int
int
int
byte[]
byte[]
byte[]
long
void
setProduceResultFuture
(CompletableFuture<PubSubProduceResult> produceResultFuture) void
setSkipProduce
(boolean shouldSkipProduce) boolean
void
updateSerializedUpdate
(byte[] serializedUpdate) This method convert message into a PUT message type.
-
Constructor Details
-
ProducerBufferRecord
public ProducerBufferRecord(MessageType messageType, byte[] serializedKey, byte[] serializedValue, byte[] serializedUpdate, int schemaId, int protocolId, PubSubProducerCallback callback, long timestamp)
-
-
Method Details
-
shouldSkipProduce
public boolean shouldSkipProduce() -
setSkipProduce
public void setSkipProduce(boolean shouldSkipProduce) -
getSerializedKey
public byte[] getSerializedKey() -
getSerializedValue
public byte[] getSerializedValue() -
getSerializedUpdate
public byte[] getSerializedUpdate() -
getSchemaId
public int getSchemaId() -
getProtocolId
public int getProtocolId() -
getTimestamp
public long getTimestamp() -
getMessageType
-
getDependentCallbackList
-
addDependentCallback
-
getCallback
-
getProduceResultFuture
-
setProduceResultFuture
-
addRecordToDependentRecordList
-
getDependentRecordList
-
updateSerializedUpdate
public void updateSerializedUpdate(byte[] serializedUpdate) This method convert message into a PUT message type. -
getHeapSize
public int getHeapSize()- Specified by:
getHeapSize
in interfaceMeasurable
-