@UriEndpoint(firstVersion="1.4.0", scheme="spring-event", title="Spring Event", syntax="spring-event:name", category={SPRING,EVENTBUS}) public class EventEndpoint extends org.apache.camel.support.DefaultEndpoint implements ApplicationContextAware
Constructor and Description |
---|
EventEndpoint(String endpointUri,
EventComponent component,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
consumerStarted(EventConsumer consumer) |
void |
consumerStopped(EventConsumer consumer) |
EventConsumer |
createConsumer(org.apache.camel.Processor processor) |
protected org.apache.camel.processor.loadbalancer.LoadBalancer |
createLoadBalancer() |
org.apache.camel.Producer |
createProducer() |
ApplicationContext |
getApplicationContext() |
EventComponent |
getComponent() |
org.apache.camel.processor.loadbalancer.LoadBalancer |
getLoadBalancer() |
String |
getName() |
void |
onApplicationEvent(ApplicationEvent event) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setLoadBalancer(org.apache.camel.processor.loadbalancer.LoadBalancer loadBalancer) |
void |
setName(String name) |
protected ApplicationEvent |
toApplicationEvent(org.apache.camel.Exchange exchange) |
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, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public EventEndpoint(String endpointUri, EventComponent component, String name)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public ApplicationContext getApplicationContext()
public org.apache.camel.Producer createProducer() throws Exception
createProducer
in interface org.apache.camel.Endpoint
Exception
public EventConsumer createConsumer(org.apache.camel.Processor processor) throws Exception
createConsumer
in interface org.apache.camel.Endpoint
Exception
public void onApplicationEvent(ApplicationEvent event)
public org.apache.camel.processor.loadbalancer.LoadBalancer getLoadBalancer()
public void setLoadBalancer(org.apache.camel.processor.loadbalancer.LoadBalancer loadBalancer)
public EventComponent getComponent()
getComponent
in class org.apache.camel.support.DefaultEndpoint
public void consumerStarted(EventConsumer consumer)
public void consumerStopped(EventConsumer consumer)
protected org.apache.camel.processor.loadbalancer.LoadBalancer createLoadBalancer()
protected ApplicationEvent toApplicationEvent(org.apache.camel.Exchange exchange)
Apache Camel