Close the executor.
Close the executor.
Safely execute some blocking code.
Executes the blocking code in the handler blockingCodeHandler using a thread from the worker pool.
When the code is complete the handler resultHandler will be called with the result on the original context
(i.e. on the original event loop of the caller).
A Future instance is passed into blockingCodeHandler. When the blocking code successfully completes,
the handler should call the {@link Promise#complete} or {@link Promise#complete} method, or the {@link Promise#fail}
method if it failed.
In the blockingCodeHandler the current context remains the original context and therefore any task
scheduled in the blockingCodeHandler will be executed on the this context and not on the worker thread.
Safely execute some blocking code.
Executes the blocking code in the handler blockingCodeHandler using a thread from the worker pool.
When the code is complete the handler resultHandler will be called with the result on the original context
(i.e. on the original event loop of the caller).
A Future instance is passed into blockingCodeHandler. When the blocking code successfully completes,
the handler should call the {@link Promise#complete} or {@link Promise#complete} method, or the {@link Promise#fail}
method if it failed.
In the blockingCodeHandler the current context remains the original context and therefore any task
scheduled in the blockingCodeHandler will be executed on the this context and not on the worker thread.
Like {@link WorkerExecutor#executeBlocking} called with ordered = true.
Like {@link WorkerExecutor#executeBlocking} called with ordered = true.
Whether the metrics are enabled for this measured object
Generated using TypeDoc
An executor for executing blocking code in Vert.x .
It provides the same
executeBlockingoperation than Context and Vertx but on a separate worker pool.