EventHubRuntimeInformation Class
- java.
lang. Object - com.
microsoft. azure. eventhubs. EventHubRuntimeInformation
- com.
public final class EventHubRuntimeInformation
Holds information about Event Hubs which can come handy while performing data-plane operations like createPartitionSender(String partitionId) and createReceiver(String consumerGroupName, String partitionId, EventPosition eventPosition)
Constructor Summary
| Constructor | Description | |
|---|---|---|
| EventHubRuntimeInformation(String path, Instant createdAt, int partitionCount, String[] partitionIds) | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Instant |
getCreatedAt()
Time at which Event Hub was created at. |
| int |
getPartitionCount()
Number of partitions in the Event Hub. |
| String[] |
getPartitionIds()
List of Partition identifiers of the Event Hub. |
| String |
getPath()
Event Hub name |
Methods inherited from java.lang.Object
Constructor Details
EventHubRuntimeInformation
public EventHubRuntimeInformation(String path, Instant createdAt, int partitionCount, String[] partitionIds)
Parameters:
Method Details
getCreatedAt
public Instant getCreatedAt()
Time at which Event Hub was created at.
Returns:
getPartitionCount
public int getPartitionCount()
Number of partitions in the Event Hub.
Returns:
getPartitionIds
public String[] getPartitionIds()
List of Partition identifiers of the Event Hub.
Returns:
getPath
public String getPath()
Event Hub name
Returns: