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, wrapTask
public EventLoopContext(VertxInternal vertx, Executor internalBlockingExec, Executor workerExec, String deploymentID, JsonObject config, ClassLoader tccl)
public void executeAsync(Handler<Void> task)
executeAsync
in class ContextImpl
public 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 Context
isEventLoopContext
in class ContextImpl
public boolean isMultiThreadedWorkerContext()
Context
isMultiThreadedWorkerContext
in interface Context
isMultiThreadedWorkerContext
in class ContextImpl
protected void checkCorrectThread()
checkCorrectThread
in class ContextImpl
Copyright © 2015. All Rights Reserved.