Class EarliestEventPositionProvider

java.lang.Object
org.apache.nifi.processors.azure.eventhub.position.EarliestEventPositionProvider
All Implemented Interfaces:
EventPositionProvider

public class EarliestEventPositionProvider extends Object implements EventPositionProvider
Earliest Event Position provides a workaround for implementing a start position other than EventPosition.latest() The initial number of partitions is not known. This should be replaced pending implementation of Azure SDK for Java Issue 11431
  • Constructor Details

    • EarliestEventPositionProvider

      public EarliestEventPositionProvider()
  • Method Details

    • getInitialPartitionEventPosition

      public Map<String,com.azure.messaging.eventhubs.models.EventPosition> getInitialPartitionEventPosition()
      Get Initial Partition Event Position using earliest available strategy
      Specified by:
      getInitialPartitionEventPosition in interface EventPositionProvider
      Returns:
      Map of Partition to earliest Event Position