Package com.microsoft.azure.eventhubs
Class EventHubRuntimeInformation
- java.lang.Object
-
- com.microsoft.azure.eventhubs.EventHubRuntimeInformation
-
public final class EventHubRuntimeInformation extends Object
Holds information about Event Hubs which can come handy while performing data-plane operations likeEventHubClient.createPartitionSender(String)andEventHubClient.createReceiver(String, String, EventPosition)
-
-
Constructor Summary
Constructors Constructor Description EventHubRuntimeInformation(String path, Instant createdAt, int partitionCount, String[] partitionIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetCreatedAt()Time at which Event Hub was created at.intgetPartitionCount()Number of partitions in the Event Hub.String[]getPartitionIds()List of Partition identifiers of the Event Hub.StringgetPath()Event Hub name
-
-
-
Method Detail
-
getPath
public String getPath()
Event Hub name- Returns:
- name
-
getCreatedAt
public Instant getCreatedAt()
Time at which Event Hub was created at.- Returns:
- created time
-
getPartitionCount
public int getPartitionCount()
Number of partitions in the Event Hub.- Returns:
- partition count
-
getPartitionIds
public String[] getPartitionIds()
List of Partition identifiers of the Event Hub.- Returns:
- partition identifiers
-
-