Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Migrate away from Vert.X #175

wants to merge 7 commits into from

Conversation

nateweisz
Copy link
Contributor

Closes #174

Copy link

sonarqubecloud bot commented Oct 4, 2024

@nateweisz nateweisz requested review from SquidXTV and removed request for Taz03 October 5, 2024 16:32
@Override
public void onClose(int i, String s, boolean b) {
onClose.run();
}
Copy link
Member

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();
Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about Executors#newSingleThreadScheduledExecutor()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate away from vert.x
3 participants