It provides the same executeBlocking operation than io. and
io. but on a separate worker pool.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Future | |
| public < the type of the result T> void | executeBlocking(Handler<Promise<T>>
handler representing the blocking code to run blockingCodeHandler, boolean if true then if executeBlocking is called several times on the same context, the executions
for that context will be executed serially, not in parallel. if false then they will be no ordering
guarantees ordered, Handler<AsyncResult<@Nullable T>> handler that will be called when the blocking code is complete resultHandler)
Deprecated
instead use
executeBlocking(Callable, boolean)
Safely execute some blocking code. |
| public default <T> void | executeBlocking(Handler<Promise<T>> blockingCodeHandler, Handler<AsyncResult<@Nullable T>> resultHandler)
Deprecated
instead use
executeBlocking(Callable)
Like |
| public <T> Future | executeBlocking(Handler<Promise<T>> blockingCodeHandler, boolean ordered)
Deprecated
instead use
executeBlocking(Callable, boolean)
Same as |
| public < the type of the result T> Future | Returns: a future notified with the resulthandler representing the blocking code to run blockingCodeHandler, boolean if true then if executeBlocking is called several times on the same context, the executions
for that context will be executed serially, not in parallel. if false then they will be no ordering
guarantees ordered)Safely execute some blocking code. |
| public default <T> Future | executeBlocking(Handler<Promise<T>> blockingCodeHandler)
Deprecated
instead use
executeBlocking(Callable)
Like |
| public default <T> Future | executeBlocking(Callable<T> blockingCodeHandler)
Like |
| public default <T> void | executeBlocking(Callable<T> blockingCodeHandler, Handler<AsyncResult<@Nullable T>> resultHandler)
Like |
| public default <T> void | executeBlocking(Callable<T> blockingCodeHandler, boolean ordered, Handler<AsyncResult<@Nullable T>> resultHandler)
Like |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> handler) Close the executor.
| |
| close | back to summary |
|---|---|
| public Future Like | |
| executeBlocking | back to summary |
|---|---|
| public <T> void executeBlocking(Handler<Promise<T>> blockingCodeHandler, boolean ordered, Handler<AsyncResult<@Nullable T>> resultHandler)
Deprecated instead use Safely execute some blocking code.
Executes the blocking code in the handler The returned future will be completed with the result on the original context (i.e. on the original event loop of the caller) or failed when the handler throws an exception.
A
In the
| |
| executeBlocking | back to summary |
|---|---|
| public default <T> void executeBlocking(Handler<Promise<T>> blockingCodeHandler, Handler<AsyncResult<@Nullable T>> resultHandler)
Deprecated instead use Like
| |
| executeBlocking | back to summary |
|---|---|
| public <T> Future Deprecated instead use Same as
| |
| executeBlocking | back to summary |
|---|---|
| public <T> Future Safely execute some blocking code.
Executes the blocking code in the handler The returned future will be completed with the result on the original context (i.e. on the original event loop of the caller) or failed when the handler throws an exception.
In the
| |
| executeBlocking | back to summary |
|---|---|
| public default <T> Future Deprecated instead use Like
| |
| executeBlocking | back to summary |
|---|---|
| public default <T> Future Like
| |
| executeBlocking | back to summary |
|---|---|
| public default <T> void executeBlocking(Callable<T> blockingCodeHandler, Handler<AsyncResult<@Nullable T>> resultHandler) Like
| |
| executeBlocking | back to summary |
|---|---|
| public default <T> void executeBlocking(Callable<T> blockingCodeHandler, boolean ordered, Handler<AsyncResult<@Nullable T>> resultHandler) Like
| |