public class EventLoopContext extends ContextImpl
config, contextThread, deploymentID, orderedInternalPoolExec, owner, workerExec| Constructor and Description |
|---|
EventLoopContext(VertxInternal vertx,
Executor internalBlockingExec,
Executor workerExec,
String deploymentID,
JsonObject config,
ClassLoader tccl) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCorrectThread() |
void |
executeAsync(Handler<Void> task) |
boolean |
isEventLoopContext()
Is the current context an event loop context?
|
boolean |
isMultiThreadedWorkerContext()
Is the current context a multi-threaded worker context?
|
addCloseHook, config, contextData, deploymentID, eventLoop, executeBlocking, executeBlocking, executeFromIO, get, getDeployment, getInstanceCount, isOnEventLoopThread, isOnVertxThread, isOnWorkerThread, isWorkerContext, owner, processArgs, put, remove, removeCloseHook, runCloseHooks, runOnContext, setContext, setDeployment, wrapTaskpublic EventLoopContext(VertxInternal vertx, Executor internalBlockingExec, Executor workerExec, String deploymentID, JsonObject config, ClassLoader tccl)
public void executeAsync(Handler<Void> task)
executeAsync in class ContextImplpublic boolean isEventLoopContext()
Context
NOTE! when running blocking code using Vertx.executeBlocking(Handler, Handler) from a
standard (not worker) verticle, the context will still an event loop context and this this#isEventLoopContext()
will return true.
isEventLoopContext in interface ContextisEventLoopContext in class ContextImplpublic boolean isMultiThreadedWorkerContext()
ContextisMultiThreadedWorkerContext in interface ContextisMultiThreadedWorkerContext in class ContextImplprotected void checkCorrectThread()
checkCorrectThread in class ContextImplCopyright © 2015. All Rights Reserved.