Skip to content

Commit 87e1a10

Browse files
Clarify when RecoveryListener methods are invoked
Fixes #286. Conflicts: src/main/java/com/rabbitmq/client/RecoveryListener.java
2 parents 9fbd704 + 72075a7 commit 87e1a10

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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)