Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -720,14 +720,14 @@ protected void sleepSeconds(int seconds){
}
}

public static void reconnectAllConnections(PulsarClientImpl c) throws Exception {
private static void reconnectAllConnections(PulsarClientImpl c) throws Exception {
ConnectionPool pool = c.getCnxPool();
Method closeAllConnections = ConnectionPool.class.getDeclaredMethod("closeAllConnections", new Class[]{});
closeAllConnections.setAccessible(true);
closeAllConnections.invoke(pool, new Object[]{});
}

public void reconnectAllConnections() throws Exception {
protected void reconnectAllConnections() throws Exception {
reconnectAllConnections((PulsarClientImpl) pulsarClient);
}

Expand Down