Package io.debezium.server.eventhubs
Class EventDataBatchProxy
java.lang.Object
io.debezium.server.eventhubs.EventDataBatchProxy
Proxy class/wrapper for EventDataBatch. Will create an inner EventDataBatch when data is being emitted to a specific
partition.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.azure.messaging.eventhubs.EventDataBatchprivate final com.azure.messaging.eventhubs.models.CreateBatchOptionsprivate final com.azure.messaging.eventhubs.EventHubProducerClient -
Constructor Summary
ConstructorsConstructorDescriptionEventDataBatchProxy(com.azure.messaging.eventhubs.EventHubProducerClient producer, com.azure.messaging.eventhubs.models.CreateBatchOptions batchOptions) -
Method Summary
-
Field Details
-
batch
private com.azure.messaging.eventhubs.EventDataBatch batch -
producer
private final com.azure.messaging.eventhubs.EventHubProducerClient producer -
batchOptions
private final com.azure.messaging.eventhubs.models.CreateBatchOptions batchOptions
-
-
Constructor Details
-
EventDataBatchProxy
public EventDataBatchProxy(com.azure.messaging.eventhubs.EventHubProducerClient producer, com.azure.messaging.eventhubs.models.CreateBatchOptions batchOptions)
-
-
Method Details
-
tryAdd
public boolean tryAdd(com.azure.messaging.eventhubs.EventData eventData) -
getCount
public int getCount() -
emit
public void emit()
-