Class EventDataBatchProxy

java.lang.Object
io.debezium.server.eventhubs.EventDataBatchProxy

public class EventDataBatchProxy extends Object
Proxy class/wrapper for EventDataBatch. Will create an inner EventDataBatch when data is being emitted to a specific partition.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private com.azure.messaging.eventhubs.EventDataBatch
     
    private final com.azure.messaging.eventhubs.models.CreateBatchOptions
     
    private final com.azure.messaging.eventhubs.EventHubProducerClient
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EventDataBatchProxy(com.azure.messaging.eventhubs.EventHubProducerClient producer, com.azure.messaging.eventhubs.models.CreateBatchOptions batchOptions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    int
     
    boolean
    tryAdd(com.azure.messaging.eventhubs.EventData eventData)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()