Package org.apache.camel.reactive.vertx
Class VertXReactiveExecutor
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.reactive.vertx.VertXReactiveExecutor
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.ReactiveExecutor,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
@JdkService("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.StaticServiceA VertX basedReactiveExecutorthat uses Vert X event loop. NOTE: This is an experimental implementation (use with care)
-
-
Constructor Summary
Constructors Constructor Description VertXReactiveExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInit()protected voiddoStart()booleanexecuteFromQueue()org.apache.camel.CamelContextgetCamelContext()io.vertx.core.VertxgetVertx()booleanisStatisticsEnabled()voidschedule(Runnable runnable)voidscheduleMain(Runnable runnable)voidscheduleQueue(Runnable runnable)voidscheduleSync(Runnable runnable)voidsetCamelContext(org.apache.camel.CamelContext camelContext)voidsetStatisticsEnabled(boolean statisticsEnabled)voidsetVertx(io.vertx.core.Vertx vertx)To use an existing instance ofVertxinstead of creating a default instance.StringtoString()-
Methods inherited from class org.apache.camel.support.service.BaseService
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, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContextin interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getVertx
public io.vertx.core.Vertx getVertx()
-
setVertx
public void setVertx(io.vertx.core.Vertx vertx)
To use an existing instance ofVertxinstead of creating a default instance.
-
doInit
protected void doInit() throws Exception- Overrides:
doInitin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
schedule
public void schedule(Runnable runnable)
- Specified by:
schedulein interfaceorg.apache.camel.spi.ReactiveExecutor
-
scheduleMain
public void scheduleMain(Runnable runnable)
- Specified by:
scheduleMainin interfaceorg.apache.camel.spi.ReactiveExecutor
-
scheduleSync
public void scheduleSync(Runnable runnable)
- Specified by:
scheduleSyncin interfaceorg.apache.camel.spi.ReactiveExecutor
-
scheduleQueue
public void scheduleQueue(Runnable runnable)
- Specified by:
scheduleQueuein interfaceorg.apache.camel.spi.ReactiveExecutor
-
executeFromQueue
public boolean executeFromQueue()
- Specified by:
executeFromQueuein interfaceorg.apache.camel.spi.ReactiveExecutor
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled)
- Specified by:
setStatisticsEnabledin interfaceorg.apache.camel.spi.ReactiveExecutor
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
- Specified by:
isStatisticsEnabledin interfaceorg.apache.camel.spi.ReactiveExecutor
-
-