EventHubRuntimeInformation Class

  • java.lang.Object
    • com.microsoft.azure.eventhubs.EventHubRuntimeInformation

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:

path
createdAt
partitionCount
partitionIds

Method Details

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

getPath

public String getPath()

Event Hub name

Returns:

name

Applies to