Class PartitionSupplier
java.lang.Object
com.azure.spring.messaging.eventhubs.core.PartitionSupplier
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the partition id.Get the partition key.void
setPartitionId
(String partitionId) Set the partition id.void
setPartitionKey
(String partitionKey) Set the partition key.
-
Constructor Details
-
PartitionSupplier
public PartitionSupplier()Create an instance ofPartitionSupplier
.
-
-
Method Details
-
getPartitionKey
Get the partition key.- Returns:
- the partition key.
-
setPartitionKey
Set the partition key.- Parameters:
partitionKey
- the partition key.
-
getPartitionId
Get the partition id.- Returns:
- the partition id.
-
setPartitionId
Set the partition id.- Parameters:
partitionId
- the partition id.
-