Skip to content

Add ConnectionBuilder#name(String) #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/java/com/rabbitmq/client/amqp/ConnectionBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
/** Builder for {@link Connection} instances. */
public interface ConnectionBuilder extends ConnectionSettings<ConnectionBuilder> {

/**
* Set the name of the connection.
*
* <p>The name of the connection will be displayed in the management UI.
*
* @param name client-provided connection name
* @return this builder instance
*/
ConnectionBuilder name(String name);

/**
* Configuration for recovery.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void copyTo(AmqpConnectionBuilder copy) {
copy.dispatchingExecutor(this.dispatchingExecutor);
}

AmqpConnectionBuilder name(String name) {
public AmqpConnectionBuilder name(String name) {
this.name = name;
return this;
}
Expand Down