-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate away from Vert.X #175
base: main
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
@Override | ||
public void onClose(int i, String s, boolean b) { | ||
onClose.run(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is i
, s
and b
? Maybe give them better names and why arent they passed down to onClose
like the other methods?
webSocket.close(); | ||
if (client != null && !client.isClosed()) { | ||
try { | ||
client.closeBlocking(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add some logging if it succeeded
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
public class WebSocketRetryHandler { | ||
private static final Logger LOGGER = LogManager.getLogger(WebSocketRetryHandler.class); | ||
private final Vertx vertx; | ||
private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about Executors#newSingleThreadScheduledExecutor()
?
Closes #174