@JdkService(value="thread-pool-factory")
public class VertXThreadPoolFactory
extends org.apache.camel.support.DefaultThreadPoolFactory
implements org.apache.camel.spi.ThreadPoolFactory
| Constructor and Description |
|---|
VertXThreadPoolFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected void |
doStart() |
io.vertx.core.Vertx |
getVertx() |
ExecutorService |
newCachedThreadPool(ThreadFactory threadFactory) |
ExecutorService |
newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile,
ThreadFactory threadFactory) |
void |
setVertx(io.vertx.core.Vertx vertx)
To use an existing instance of
Vertx instead of creating a default instance. |
String |
toString() |
getCamelContext, newScheduledThreadPool, newThreadPool, setCamelContextbuild, 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 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 ExecutorService newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory)
newThreadPool in interface org.apache.camel.spi.ThreadPoolFactorynewThreadPool in class org.apache.camel.support.DefaultThreadPoolFactorypublic ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
newCachedThreadPool in interface org.apache.camel.spi.ThreadPoolFactorynewCachedThreadPool in class org.apache.camel.support.DefaultThreadPoolFactoryApache Camel