| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ContextImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final ClassLoader | |
| public Future | close()
Implements io. Close this context, cleanup close future hooks then dispose pending ordered task queue. |
| public final CloseFuture | |
| public final JsonObject | config()
Implements io.
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
If the context is associated with a Verticle deployment, this returns the configuration that was specified when the verticle was deployed. |
| public final ConcurrentMap | |
| public ContextInternal | duplicate()
Implements io. Returns a context sharing with this context
|
| public <T> void | emit(T
the argument, Handler<T> task argumentthe handler to execute with the task)event argumentImplements io. Emit the given |
| public final Context | |
| public final Handler | |
| public final <T> void | execute(T
the argument, Handler<T> task argumentthe task to execute task)Implements io. Execute a |
| public void | execute(Runnable
the task to execute task)Implements io. Execute the |
| public final <T> Future | executeBlocking(Handler<Promise<T>> action, boolean ordered)
Implements io. Same as |
| public final <T> Future | executeBlocking(Callable<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)Implements io. Safely execute some blocking code. |
| public final <T> Future | executeBlocking(Handler<Promise<T>> blockingCodeHandler, TaskQueue queue)
Implements io. Like |
| public final <T> Future | executeBlocking(Callable<T> blockingCodeHandler, TaskQueue queue)
Implements io.
|
| public final <T> Future | executeBlockingInternal(Handler<Promise<T>> action)
Implements io. Like |
| public <T> Future | executeBlockingInternal(Callable<T> action)
Implements io.
|
| public final <T> Future | executeBlockingInternal(Handler<Promise<T>> action, boolean ordered)
Implements io. Like |
| public <T> Future | executeBlockingInternal(Callable<T> action, boolean ordered)
Implements io.
|
| public Executor | |
| public final Deployment | |
| public boolean | |
| public boolean | isDuplicate()
Overrides default io. Returns |
| public boolean | isEventLoopContext()
Implements io. Is the current context an event loop context? |
| public boolean | isWorkerContext()
Implements io. Is the current context a worker context? |
| public final EventLoop | nettyEventLoop()
Implements io. Return the Netty EventLoop used by this Context. |
| public final VertxInternal | |
| public final void | reportException(Throwable
the exception to report t)Implements io. Report an exception to this context synchronously. |
| public ThreadingModel | |
| public final VertxTracer | |
| public ContextInternal | unwrap()
Overrides default io. Returns the original context, a duplicate context returns the wrapped context otherwise this instance is returned. |
| public WorkerPool |
| delegate | back to summary |
|---|---|
| pack-priv final ContextImpl delegate | |
| DuplicatedContext | back to summary |
|---|---|
| pack-priv DuplicatedContext(ContextImpl delegate) | |
| classLoader | back to summary |
|---|---|
| public final ClassLoader classLoader() Implements io.
| |
| close | back to summary |
|---|---|
| public Future Implements io. Doc from io. Close this context, cleanup close future hooks then dispose pending ordered task queue. | |
| closeFuture | back to summary |
|---|---|
| public final CloseFuture closeFuture() Implements io.
| |
| config | back to summary |
|---|---|
| public final JsonObject config() Implements io. Doc from io. References Deprecated
See corresponding docs for further information. If the context is associated with a Verticle deployment, this returns the configuration that was specified when the verticle was deployed.
| |
| contextData | back to summary |
|---|---|
| public final ConcurrentMap Implements io.
| |
| duplicate | back to summary |
|---|---|
| public ContextInternal duplicate() Implements io. Doc from io. Returns a context sharing with this context
The duplicate context has its own
| |
| emit | back to summary |
|---|---|
| public <T> void emit(T argument, Handler<T> task) Implements io. Doc from io. Emit the given | |
| exceptionHandler | back to summary |
|---|---|
public final Context exceptionHandler(Handler<Throwable> handler)
| |
| exceptionHandler | back to summary |
|---|---|
| public final Handler Implements io.
| |
| execute | back to summary |
|---|---|
| public final <T> void execute(T argument, Handler<T> task) Implements io. Doc from io. Execute a | |
| execute | back to summary |
|---|---|
| public void execute(Runnable task) Implements io. Doc from io. Execute the | |
| executeBlocking | back to summary |
|---|---|
| public final <T> Future Implements io. Doc from io. Same as
| |
| executeBlocking | back to summary |
|---|---|
| public final <T> Future Implements io. Doc from io. 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. The blocking code should block for a reasonable amount of time (i.e no more than a few seconds). Long blocking operations or polling operations (i.e a thread that spin in a loop polling events in a blocking fashion) are precluded. When the blocking operation lasts more than the 10 seconds, a message will be printed on the console by the blocked thread checker.
Long blocking operations should use a dedicated thread managed by the application, which can interact with
verticles using the event-bus or
| |
| executeBlocking | back to summary |
|---|---|
| public final <T> Future Implements io. Doc from io. Like
| |
| executeBlocking | back to summary |
|---|---|
| public final <T> Future Implements io.
| |
| executeBlockingInternal | back to summary |
|---|---|
| public final <T> Future Implements io. Doc from io. Like
| |
| executeBlockingInternal | back to summary |
|---|---|
| public <T> Future Implements io.
| |
| executeBlockingInternal | back to summary |
|---|---|
| public final <T> Future Implements io. Doc from io. Like
| |
| executeBlockingInternal | back to summary |
|---|---|
| public <T> Future Implements io.
| |
| executor | back to summary |
|---|---|
| public Executor executor() Implements io.
| |
| getDeployment | back to summary |
|---|---|
| public final Deployment getDeployment() Implements io.
| |
| inThread | back to summary |
|---|---|
| public boolean inThread() Implements io.
| |
| isDuplicate | back to summary |
|---|---|
| public boolean isDuplicate() Overrides default io. Doc from io. Returns
| |
| isEventLoopContext | back to summary |
|---|---|
| public boolean isEventLoopContext() Implements io. Doc from io. Is the current context an event loop context? Note when running blocking code using
| |
| isWorkerContext | back to summary |
|---|---|
| public boolean isWorkerContext() Implements io. Doc from io. Is the current context a worker context? Note when running blocking code using
| |
| nettyEventLoop | back to summary |
|---|---|
| public final EventLoop nettyEventLoop() Implements io. Doc from io. Return the Netty EventLoop used by this Context. This can be used to integrate a Netty Server with a Vert.x runtime, specially the Context part. | |
| owner | back to summary |
|---|---|
| public final VertxInternal owner() Implements io.
| |
| reportException | back to summary |
|---|---|
| public final void reportException(Throwable t) Implements io. Doc from io. Report an exception to this context synchronously. The exception handler will be called when there is one, otherwise the exception will be logged. | |
| threadingModel | back to summary |
|---|---|
| public ThreadingModel threadingModel() Implements io.
| |
| tracer | back to summary |
|---|---|
| public final VertxTracer Implements io.
| |
| unwrap | back to summary |
|---|---|
| public ContextInternal unwrap() Overrides default io. Doc from io. Returns the original context, a duplicate context returns the wrapped context otherwise this instance is returned.
| |
| workerPool | back to summary |
|---|---|
| public WorkerPool workerPool() Implements io.
| |