Created
February 10, 2019 16:32
-
-
Save AlexeySoshin/4d9db6c02074290ea70288acf40f20f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void restart(HttpClient client, int delay) { | |
client.close(); | |
vertx.setTimer(TimeUnit.SECONDS.toMillis(delay), (__) -> { | |
startClient(vertx); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment