@UriEndpoint(scheme="context", title="Camel Context", syntax="context:contextId:localEndpointUrl", label="endpoint") public class ContextEndpoint extends DefaultEndpoint implements DelegateEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
ContextEndpoint(String endpointUri,
Component component,
Endpoint delegate) |
Modifier and Type | Method and Description |
---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
String |
getContextId() |
Endpoint |
getEndpoint()
Gets the delegated
Endpoint . |
String |
getLocalEndpointUrl() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setContextId(String contextId) |
void |
setLocalEndpointUrl(String localEndpointUrl) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointConfiguration, getEndpointKey, getEndpointUri, isLenientProperties, setCamelContext
public Endpoint getEndpoint()
DelegateEndpoint
Endpoint
.getEndpoint
in interface DelegateEndpoint
public String getContextId()
public void setContextId(String contextId)
public String getLocalEndpointUrl()
public void setLocalEndpointUrl(String localEndpointUrl)
public Producer createProducer() throws Exception
Endpoint
createProducer
in interface Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
createConsumer
in interface Endpoint
processor
- the given processorException
- can be thrownpublic boolean isSingleton()
IsSingleton
isSingleton
in interface IsSingleton
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.