public class PartitionContext extends Object
| Constructor and Description |
|---|
PartitionContext(String fullyQualifiedNamespace,
String eventHubName,
String consumerGroup,
String partitionId)
Creates an instance of PartitionContext that contains partition information.
|
| 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.
|
public PartitionContext(String fullyQualifiedNamespace, String eventHubName, String consumerGroup, String partitionId)
fullyQualifiedNamespace - The fully qualified namespace of the Event Hub.eventHubName - The Event Hub name.consumerGroup - The consumer group name associated with the consumer of an Event Hub.partitionId - The partition id of the partition.NullPointerException - if fullyQualifiedNamespace, partitionId, eventHubName or
consumerGroup or is null.public String getFullyQualifiedNamespace()
public String getPartitionId()
public String getEventHubName()
public String getConsumerGroup()
Copyright © 2021 Microsoft Corporation. All rights reserved.