PartitionContext Class
- java.
lang. Object - com.
azure. messaging. eventhubs. models. PartitionContext
- com.
public class PartitionContext
A model class to contain partition information of an Event Hub.
Constructor Summary
Constructor | Description |
---|---|
PartitionContext(String fullyQualifiedNamespace, String eventHubName, String consumerGroup, String partitionId) |
Creates an instance of Partition |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getConsumerGroup()
Gets the consumer group name associated with the consumer of an Event Hub. |
String |
getEventHubName()
Gets the Event Hub name. |
String |
getFullyQualifiedNamespace()
Returns the fully qualified namespace of the Event Hub. |
String |
getPartitionId()
Gets the partition id of the Event Hub. |
Methods inherited from java.lang.Object
Constructor Details
PartitionContext
public PartitionContext(String fullyQualifiedNamespace, String eventHubName, String consumerGroup, String partitionId)
Creates an instance of PartitionContext that contains partition information.
Parameters:
Method Details
getConsumerGroup
public String getConsumerGroup()
Gets the consumer group name associated with the consumer of an Event Hub.
Returns:
getEventHubName
public String getEventHubName()
Gets the Event Hub name.
Returns:
getFullyQualifiedNamespace
public String getFullyQualifiedNamespace()
Returns the fully qualified namespace of the Event Hub.
Returns:
getPartitionId
public String getPartitionId()
Gets the partition id of the Event Hub.
Returns:
Applies to
Azure SDK for Java