Skip to content
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