@UriEndpoint(firstVersion="2.11.0",
scheme="controlbus",
title="Control Bus",
syntax="controlbus:command:language",
producerOnly=true,
label="core,monitoring")
public class ControlBusEndpoint
extends org.apache.camel.support.DefaultEndpoint
| Constructor and Description |
|---|
ControlBusEndpoint(String endpointUri,
org.apache.camel.Component component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getAction() |
ControlBusComponent |
getComponent() |
org.apache.camel.spi.Language |
getLanguage() |
org.apache.camel.LoggingLevel |
getLoggingLevel() |
int |
getRestartDelay() |
String |
getRouteId() |
boolean |
isAsync() |
boolean |
isSingleton() |
void |
setAction(String action)
To denote an action that can be either: start, stop, or status.
|
void |
setAsync(boolean async)
Whether to execute the control bus task asynchronously.
|
void |
setLanguage(org.apache.camel.spi.Language language)
Allows you to specify the name of a Language to use for evaluating the message body.
|
void |
setLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)
Logging level used for logging when task is done, or if any exceptions occurred during processing the task.
|
void |
setRestartDelay(int restartDelay)
The delay in millis to use when restarting a route.
|
void |
setRouteId(String routeId)
To specify a route by its id.
|
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringbuild, doBuild, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic ControlBusEndpoint(String endpointUri, org.apache.camel.Component component)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonisSingleton in class org.apache.camel.support.DefaultEndpointpublic ControlBusComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointpublic org.apache.camel.spi.Language getLanguage()
public void setLanguage(org.apache.camel.spi.Language language)
public String getRouteId()
public void setRouteId(String routeId)
public String getAction()
public void setAction(String action)
public int getRestartDelay()
public void setRestartDelay(int restartDelay)
public boolean isAsync()
public void setAsync(boolean async)
public org.apache.camel.LoggingLevel getLoggingLevel()
public void setLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)
Apache Camel