org.apache.camel.component.controlbus
Class ControlBusEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.controlbus.ControlBusEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId, StatefulService, SuspendableService
@UriEndpoint(scheme="controlbus")
public class ControlBusEndpoint
- extends DefaultEndpoint
The control bus endpoint.
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
ControlBusEndpoint
public ControlBusEndpoint(String endpointUri,
Component component)
createProducer
public Producer createProducer()
throws Exception
- Description copied from interface:
Endpoint
- Creates a new producer which is used send messages into the endpoint
- Returns:
- a newly created producer
- Throws:
Exception
- can be thrown
createConsumer
public Consumer createConsumer(Processor processor)
throws Exception
- Description copied from interface:
Endpoint
- Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
- Parameters:
processor
- the given processor
- Returns:
- a newly created consumer
- Throws:
Exception
- can be thrown
isSingleton
public boolean isSingleton()
- Description copied from interface:
IsSingleton
- Whether this class supports being singleton or not.
- Returns:
- true to be a single shared instance, false to create new instances.
getComponent
public ControlBusComponent getComponent()
- Description copied from class:
DefaultEndpoint
- Returns the component that created this endpoint.
- Overrides:
getComponent
in class DefaultEndpoint
- Returns:
- the component that created this endpoint, or null if
none set
getLanguage
public Language getLanguage()
setLanguage
public void setLanguage(Language language)
getRouteId
public String getRouteId()
setRouteId
public void setRouteId(String routeId)
getAction
public String getAction()
setAction
public void setAction(String action)
isAsync
public boolean isAsync()
setAsync
public void setAsync(boolean async)
getLoggingLevel
public LoggingLevel getLoggingLevel()
setLoggingLevel
public void setLoggingLevel(LoggingLevel loggingLevel)
Apache Camel