你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventHubNamespace.UpdateStages.WithEventHub Interface

public static interface EventHubNamespace.UpdateStages.WithEventHub

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

Method Summary

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

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

abstract Update withNewEventHub(String eventHubName, int partitionCount)

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

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

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

abstract Update withoutEventHub(String eventHubName)

Deletes an event hub in the event hub namespace.

Method Details

withNewEventHub

public abstract EventHubNamespace.Update 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 update

withNewEventHub

public abstract EventHubNamespace.Update 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 update

withNewEventHub

public abstract EventHubNamespace.Update 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 update

withoutEventHub

public abstract EventHubNamespace.Update withoutEventHub(String eventHubName)

Deletes an event hub in the event hub namespace.

Parameters:

eventHubName - event hub name

Returns:

next stage of the event hub namespace update

Applies to