EventHubProperties Class

  • java.lang.Object
    • com.azure.messaging.eventhubs.EventHubProperties

public final class EventHubProperties

Holds information about an Event Hub which can come handy while performing operations like receiveFromPartition(String partitionId, EventPosition startingPosition).

Method Summary

Modifier and Type Method and Description
Instant getCreatedAt()

Gets the instant, in UTC, at which Event Hub was created.

String getName()

Gets the name of the Event Hub.

IterableStream<String> getPartitionIds()

Gets the list of partition identifiers of the Event Hub.

Methods inherited from java.lang.Object

Method Details

getCreatedAt

public Instant getCreatedAt()

Gets the instant, in UTC, at which Event Hub was created.

Returns:

The instant, in UTC, at which the Event Hub was created.

getName

public String getName()

Gets the name of the Event Hub.

Returns:

Name of the Event Hub.

getPartitionIds

public IterableStream getPartitionIds()

Gets the list of partition identifiers of the Event Hub.

Returns:

The list of partition identifiers of the Event Hub.

Applies to