Share via


AmqpClientOptions Class

public final class AmqpClientOptions
extends ClientOptions

General configuration options for AMQP clients.

Constructor Summary

Constructor Description
AmqpClientOptions()

Creates an instance of AmqpClientOptions.

Method Summary

Modifier and Type Method and Description
String getIdentifier()

Gets the identifier for the AMQP client.

AmqpClientOptions setApplicationId(String applicationId)
AmqpClientOptions setHeaders(Iterable<Header> headers)
AmqpClientOptions setIdentifier(String identifier)

Sets the identifier for the AMQP client.

Methods inherited from ClientOptions

Methods inherited from java.lang.Object

Constructor Details

AmqpClientOptions

public AmqpClientOptions()

Creates an instance of AmqpClientOptions.

Method Details

getIdentifier

public String getIdentifier()

Gets the identifier for the AMQP client.

Returns:

AMQP client identifier.

setApplicationId

public AmqpClientOptions setApplicationId(String applicationId)

Overrides:

AmqpClientOptions.setApplicationId(String applicationId)

Parameters:

applicationId

setHeaders

public AmqpClientOptions setHeaders(Iterable<Header> headers)

Overrides:

AmqpClientOptions.setHeaders(Iterable<Header> headers)

Parameters:

headers

setIdentifier

public AmqpClientOptions setIdentifier(String identifier)

Sets the identifier for the AMQP client.

Parameters:

identifier - A specific string to identify AMQP client. If null or empty, a UUID will be used as the identifier.

Returns:

The updated AmqpClientOptions object.

Applies to