-
-
Save msavy/8f72fbaca9be0866c73d 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 BlockingMetricsPushingThing blockingMetricsPusher = ...; | |
private Vertx vertx; | |
void collectData(Metrics frequentData) { | |
vertx.executeBlocking(future -> { | |
blockingMetricsPusher.push(frequentData); // e.g. this might happen once per request-response cycle in an HTTP client. So very high volume. | |
}, this::resultHandler) | |
blockingMetricsThing | |
} | |
void resultHandler() { ... } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment