All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.messaging.eventhubs.implementation.EventHubManagementNode Maven / Gradle / Ivy

There is a newer version: 5.19.2
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.messaging.eventhubs.implementation;

import com.azure.core.amqp.AmqpEndpointState;
import com.azure.messaging.eventhubs.EventHubProperties;
import com.azure.messaging.eventhubs.PartitionProperties;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * The management node for fetching metadata about the Event Hub and its partitions.
 */
public interface EventHubManagementNode extends AutoCloseable {

    /**
     * Gets the endpoint states for this management node.
     *
     * @return The endpoint states for this management node.
     */
    Flux getEndpointStates();

    /**
     * Gets the metadata associated with the Event Hub.
     *
     * @return Metadata associated with the Event Hub.
     */
    Mono getEventHubProperties();

    /**
     * Gets the metadata associated with a particular partition in the Event Hub.
     *
     * @param partitionId The identifier of the partition.
     * @return The metadata associated with the partition.
     */
    Mono getPartitionProperties(String partitionId);

    @Override
    void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy