Top Description Fields Constructors Methods
io.vertx.core.impl

public Class EventLoopExecutor

extends Object
implements EventExecutor
Class Inheritance
All Implemented Interfaces
io.vertx.core.impl.EventExecutor, java.util.concurrent.Executor
Imports
io.netty.channel.EventLoop

Execute events on an event-loop.
Author
Julien Viet

Field Summary

Modifier and TypeField and Description
private final EventLoop

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
execute(Runnable
the runnable task
command
)

Implements java.util.concurrent.Executor.execute.

Executes the given command at some time in the future.

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eventLoopback to summary
private final EventLoop eventLoop

Constructor Detail

EventLoopExecutorback to summary
public EventLoopExecutor(EventLoop eventLoop)

Method Detail

executeback to summary
public void execute(Runnable command)

Implements java.util.concurrent.Executor.execute.

Doc from java.util.concurrent.Executor.execute.

Executes the given command at some time in the future. The command may execute in a new thread, in a pooled thread, or in the calling thread, at the discretion of the Executor implementation.

Parameters
command:Runnable

the runnable task

Annotations
@Override
inThreadback to summary
public boolean inThread()

Implements io.vertx.core.impl.EventExecutor.inThread.

Returns:boolean

Doc from io.vertx.core.impl.EventExecutor.inThread.

whether the current thread is one of the event executor thread

Annotations
@Override