Class PartitionSupplier

java.lang.Object
com.azure.spring.messaging.eventhubs.core.PartitionSupplier

public class PartitionSupplier extends Object
Represents a supplier of partition id or key. When sending messages with specific partition information, PartitionSupplier can be provided to specify the partition information of the messages to be sent.
  • Constructor Details

    • PartitionSupplier

      public PartitionSupplier()
      Create an instance of PartitionSupplier.
  • Method Details

    • getPartitionKey

      public String getPartitionKey()
      Get the partition key.
      Returns:
      the partition key.
    • setPartitionKey

      public void setPartitionKey(String partitionKey)
      Set the partition key.
      Parameters:
      partitionKey - the partition key.
    • getPartitionId

      public String getPartitionId()
      Get the partition id.
      Returns:
      the partition id.
    • setPartitionId

      public void setPartitionId(String partitionId)
      Set the partition id.
      Parameters:
      partitionId - the partition id.