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

com.azure.core.amqp.AmqpClientOptions Maven / Gradle / Ivy

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.core.amqp;

import com.azure.core.util.ClientOptions;
import com.azure.core.util.Header;

/**
 * General configuration options for AMQP clients.
 */
public final class AmqpClientOptions extends ClientOptions {
    private String identifier;

    /**
     * Creates an instance of {@link AmqpClientOptions}.
     */
    public AmqpClientOptions() {
    }

    /** {@inheritDoc} **/
    @Override
    public AmqpClientOptions setApplicationId(String applicationId) {
        super.setApplicationId(applicationId);
        return this;
    }

    /** {@inheritDoc} **/
    @Override
    public AmqpClientOptions setHeaders(Iterable
headers) { super.setHeaders(headers); return this; } /** * Gets the identifier for the AMQP client. * @return AMQP client identifier. */ public String getIdentifier() { return identifier; } /** * Sets the identifier for the AMQP client. * @param identifier A specific string to identify AMQP client. If null or empty, a UUID will be used as the * identifier. * @return The updated {@link AmqpClientOptions} object. */ public AmqpClientOptions setIdentifier(String identifier) { this.identifier = identifier; return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy