@ManagedResource(description="Managed ReactiveExecutor")
public class DefaultReactiveExecutor
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.ReactiveExecutor, org.apache.camel.StaticService
ReactiveExecutor.| Constructor and Description |
|---|
DefaultReactiveExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doShutdown() |
protected void |
doStop() |
boolean |
executeFromQueue() |
int |
getCreatedWorkers() |
int |
getPendingTasks() |
int |
getRunningWorkers() |
boolean |
isStatisticsEnabled() |
static void |
onClassloaded(org.slf4j.Logger log) |
void |
schedule(Runnable runnable) |
void |
scheduleMain(Runnable runnable) |
void |
scheduleQueue(Runnable runnable) |
void |
scheduleSync(Runnable runnable) |
void |
setStatisticsEnabled(boolean statisticsEnabled) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doStart, 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, toString, wait, wait, waitpublic 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 void scheduleQueue(Runnable runnable)
scheduleQueue in interface org.apache.camel.spi.ReactiveExecutorpublic boolean executeFromQueue()
executeFromQueue in interface org.apache.camel.spi.ReactiveExecutor@ManagedAttribute(description="Whether statistics is enabled") public boolean isStatisticsEnabled()
isStatisticsEnabled in interface org.apache.camel.spi.ReactiveExecutorpublic void setStatisticsEnabled(boolean statisticsEnabled)
setStatisticsEnabled in interface org.apache.camel.spi.ReactiveExecutor@ManagedAttribute(description="Number of created workers") public int getCreatedWorkers()
@ManagedAttribute(description="Number of running workers") public int getRunningWorkers()
@ManagedAttribute(description="Number of pending tasks") public int getPendingTasks()
public static void onClassloaded(org.slf4j.Logger log)
protected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionApache Camel