@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 |
---|---|
void |
callback(org.apache.camel.AsyncCallback callback) |
protected void |
doStart() |
protected void |
doStop() |
boolean |
executeFromQueue() |
int |
getCreatedWorkers() |
long |
getPendingTasks() |
int |
getRunningWorkers() |
void |
schedule(Runnable runnable,
String description) |
void |
scheduleMain(Runnable runnable,
String description) |
void |
scheduleSync(Runnable runnable,
String description) |
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void scheduleMain(Runnable runnable, String description)
scheduleMain
in interface org.apache.camel.spi.ReactiveExecutor
public void schedule(Runnable runnable, String description)
schedule
in interface org.apache.camel.spi.ReactiveExecutor
public void scheduleSync(Runnable runnable, String description)
scheduleSync
in interface org.apache.camel.spi.ReactiveExecutor
public boolean executeFromQueue()
executeFromQueue
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 long getPendingTasks()
public void callback(org.apache.camel.AsyncCallback callback)
callback
in interface org.apache.camel.spi.ReactiveExecutor
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
Apache Camel