Skip to content

Commit 4d24d74

Browse files
committed
Added Javadoc.
1 parent bd74f95 commit 4d24d74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/io/axoniq/axonserver/connector/event/impl/PersistentStreamImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ public void openConnection(InitializationProperties initializationProperties) {
125125
outboundStreamHolder.get().onNext(StreamRequest.newBuilder().setOpen(openRequest.build()).build());
126126
}
127127

128+
/**
129+
* Close this stream and signal downstream consumer that the stream is closed "erroneously" in order to trigger
130+
* reconnect mechanisms. This is to ensure that consumers of this stream can distinguish between regularly closed
131+
* streams, and those closed with the intent to re-establish a connection.
132+
*/
128133
public void triggerReconnect() {
129134
// first, close gracefully
130135
close();

0 commit comments

Comments
 (0)