Package com.linkedin.venice.writer
Class AbstractVeniceWriter<K,V,U>
java.lang.Object
com.linkedin.venice.writer.AbstractVeniceWriter<K,V,U>
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
CompositeVeniceWriter
,VeniceWriter
A base class which users of
VeniceWriter
can leverage in order to
make unit tests easier.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
close
(boolean gracefulClose) abstract CompletableFuture<PubSubProduceResult>
delete
(K key, PubSubProducerCallback callback, DeleteMetadata deleteMetadata) abstract void
flush()
abstract CompletableFuture<PubSubProduceResult>
put
(K key, V value, int valueSchemaId, PubSubProducerCallback callback) abstract Future<PubSubProduceResult>
put
(K key, V value, int valueSchemaId, PubSubProducerCallback callback, PutMetadata putMetadata) abstract Future<PubSubProduceResult>
update
(K key, U update, int valueSchemaId, int derivedSchemaId, PubSubProducerCallback callback)
-
Field Details
-
topicName
-
-
Constructor Details
-
AbstractVeniceWriter
-
-
Method Details
-
getTopicName
-
put
-
close
- Throws:
IOException
-
put
public abstract CompletableFuture<PubSubProduceResult> put(K key, V value, int valueSchemaId, PubSubProducerCallback callback) -
put
public abstract Future<PubSubProduceResult> put(K key, V value, int valueSchemaId, PubSubProducerCallback callback, PutMetadata putMetadata) -
delete
public abstract CompletableFuture<PubSubProduceResult> delete(K key, PubSubProducerCallback callback, DeleteMetadata deleteMetadata) -
update
public abstract Future<PubSubProduceResult> update(K key, U update, int valueSchemaId, int derivedSchemaId, PubSubProducerCallback callback) -
flush
public abstract void flush()
-