This file contains hidden or 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
/** | |
* Similar to {@link #executeBlocking(Handler, Handler)} but when this method is called several times on the same | |
* context for the same {@code identifier}, executions associated to that value will be executed serially. | |
* However executions associated to different identifiers will be executed in parallel. | |
* @param identifier Object used to group and serialize executions | |
* @param blockingCodeHandler handler representing the blocking code to run | |
* @param resultHandler handler that will be called when the blocking code is complete | |
* @param <T> the type of the result | |
*/ | |
<T> void executeBlocking(Object identifier, Handler<Future<T>> blockingCodeHandler, Handler<AsyncResult<T>> resultHandler); |