com.azure.core.amqp.AmqpClientOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-core-amqp Show documentation
Show all versions of azure-core-amqp Show documentation
This package contains core types for Azure Java AMQP clients.
// 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