@JdkService(value="reactive-executor")
public class VertXReactiveExecutor
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.CamelContextAware, org.apache.camel.spi.ReactiveExecutor, org.apache.camel.StaticService
ReactiveExecutor that uses Vert X event loop.
NOTE: This is an experimental implementation (use with care)| Constructor and Description |
|---|
VertXReactiveExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected void |
doStart() |
boolean |
executeFromQueue() |
org.apache.camel.CamelContext |
getCamelContext() |
io.vertx.core.Vertx |
getVertx() |
void |
schedule(Runnable runnable) |
void |
scheduleMain(Runnable runnable) |
void |
scheduleSync(Runnable runnable) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setVertx(io.vertx.core.Vertx vertx)
To use an existing instance of
Vertx instead of creating a default instance. |
String |
toString() |
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic io.vertx.core.Vertx getVertx()
public void setVertx(io.vertx.core.Vertx vertx)
Vertx instead of creating a default instance.protected void doInit()
throws Exception
doInit in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionpublic void schedule(Runnable runnable)
schedule in interface org.apache.camel.spi.ReactiveExecutorpublic void scheduleMain(Runnable runnable)
scheduleMain in interface org.apache.camel.spi.ReactiveExecutorpublic void scheduleSync(Runnable runnable)
scheduleSync in interface org.apache.camel.spi.ReactiveExecutorpublic boolean executeFromQueue()
executeFromQueue in interface org.apache.camel.spi.ReactiveExecutorApache Camel