public class ContextManager extends Object
| Constructor and Description |
|---|
ContextManager(org.vertx.java.core.Vertx vertx) |
| Modifier and Type | Method and Description |
|---|---|
<T> ContextManager |
execute(org.vertx.java.core.spi.Action<T> action,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> resultHandler)
Executes a blocking action on a background thread.
|
ExecutorService |
getExecutorService()
Returns the underlying Vert.x executor service.
|
ContextManager |
run(Runnable runnable)
Runs a runnable on a background thread.
|
ContextManager |
run(Runnable runnable,
boolean multiThreaded)
Runs a runnable on a background thread.
|
public ExecutorService getExecutorService()
public ContextManager run(Runnable runnable)
runnable - The runnable to run.public ContextManager run(Runnable runnable, boolean multiThreaded)
runnable - The runnable to run.multiThreaded - Indicates whether the runnable is multi-threaded.public <T> ContextManager execute(org.vertx.java.core.spi.Action<T> action, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> resultHandler)
action - The action to execute.resultHandler - A handler to be called with the action result.Copyright © 2013-2014. All Rights Reserved.