Partager via


EventHubNamespace.DefinitionStages.WithEventHub Interface

public static interface EventHubNamespace.DefinitionStages.WithEventHub

The stage of the event hub namespace definition allowing to add new event hub in the namespace.

Method Summary

Modifier and Type Method and Description
abstract WithCreate withNewEventHub(String eventHubName)

Specifies that a new event hub should be created in the namespace.

abstract WithCreate withNewEventHub(String eventHubName, int partitionCount)

Specifies that a new event hub should be created in the namespace.

abstract WithCreate withNewEventHub(String eventHubName, int partitionCount, int retentionPeriodInDays)

Specifies that a new event hub should be created in the namespace.

Method Details

withNewEventHub

public abstract EventHubNamespace.DefinitionStages.WithCreate withNewEventHub(String eventHubName)

Specifies that a new event hub should be created in the namespace.

Parameters:

eventHubName - event hub name

Returns:

next stage of the event hub namespace definition

withNewEventHub

public abstract EventHubNamespace.DefinitionStages.WithCreate withNewEventHub(String eventHubName, int partitionCount)

Specifies that a new event hub should be created in the namespace.

Parameters:

eventHubName - event hub name
partitionCount - the number of partitions in the event hub

Returns:

next stage of the event hub namespace definition

withNewEventHub

public abstract EventHubNamespace.DefinitionStages.WithCreate withNewEventHub(String eventHubName, int partitionCount, int retentionPeriodInDays)

Specifies that a new event hub should be created in the namespace.

Parameters:

eventHubName - event hub name
partitionCount - the number of partitions in the event hub
retentionPeriodInDays - the retention period for events in days

Returns:

next stage of the event hub namespace definition

Applies to