Skip to content

Commit 1bea35a

Browse files
Merge branch '4.1.x-stable' into 4.2.x-stable
2 parents e95a604 + 87e1a10 commit 1bea35a

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/main/java/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,8 @@ public Connection newConnection() throws IOException, TimeoutException {
986986
* is enabled, the connection returned by this method will be {@link Recoverable}. Reconnection
987987
* attempts will always use the address configured on {@link ConnectionFactory}.
988988
*
989-
* @param connectionName arbitrary sring for connection name client property
989+
* @param connectionName client-provided connection name (an arbitrary string). Will
990+
* be displayed in management UI if the server supports it.
990991
* @return an interface to the connection
991992
* @throws IOException if it encounters a problem
992993
*/
@@ -1017,7 +1018,8 @@ public Connection newConnection(ExecutorService executor) throws IOException, Ti
10171018
* attempts will always use the address configured on {@link ConnectionFactory}.
10181019
*
10191020
* @param executor thread execution service for consumers on the connection
1020-
* @param connectionName arbitrary sring for connection name client property
1021+
* @param connectionName client-provided connection name (an arbitrary string). Will
1022+
* be displayed in management UI if the server supports it.
10211023
* @return an interface to the connection
10221024
* @throws IOException if it encounters a problem
10231025
*/

src/main/java/com/rabbitmq/client/RecoveryListener.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222
* @since 3.3.0
2323
*/
2424
public interface RecoveryListener {
25+
/**
26+
* Invoked when automatic connection recovery has completed.
27+
* This includes topology recovery if it was enabled.
28+
* @param recoverable a {@link Recoverable} connection.
29+
*/
2530
void handleRecovery(Recoverable recoverable);
31+
32+
/**
33+
* Invoked before automatic connection recovery starts.
34+
* This means no recovery steps were performed at this point
35+
* during recovery process.
36+
* @param recoverable a {@link Recoverable} connection.
37+
*/
2638
void handleRecoveryStarted(Recoverable recoverable);
2739
}

0 commit comments

Comments
 (0)