Package io.debezium.server.eventhubs
Class BatchManager
java.lang.Object
io.debezium.server.eventhubs.BatchManager
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Integer(package private) static final Integerprivate final HashMap<Integer,EventDataBatchProxy> private final Stringprivate final Stringprivate static final org.slf4j.Loggerprivate final Integerprivate final com.azure.messaging.eventhubs.EventHubProducerClient -
Constructor Summary
ConstructorsConstructorDescriptionBatchManager(com.azure.messaging.eventhubs.EventHubProducerClient producer, String configurePartitionId, String configuredPartitionKey, Integer maxBatchSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidvoidvoidsendEventToPartitionId(com.azure.messaging.eventhubs.EventData eventData, Integer recordIndex, Integer partitionId)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
producer
private final com.azure.messaging.eventhubs.EventHubProducerClient producer -
configuredPartitionId
-
configuredPartitionKey
-
maxBatchSize
-
BATCH_INDEX_FOR_NO_PARTITION_ID
-
BATCH_INDEX_FOR_PARTITION_KEY
-
batchOptions
-
batches
-
-
Constructor Details
-
BatchManager
-
-
Method Details
-
initializeBatch
public void initializeBatch() -
closeAndEmitBatches
public void closeAndEmitBatches() -
sendEventToPartitionId
-
emitBatchToEventHub
-