public class ProcessorEndpoint extends DefaultPollingEndpoint
Processor
. This component does not support the use of
consumers.
Service
or SuspendableService
would do.
If your producers/consumers need more control over their lifecycle it is advised
instead to extend DefaultEndpoint
, DefaultProducer
and DefaultConsumer
.Modifier | Constructor and Description |
---|---|
protected |
ProcessorEndpoint() |
|
ProcessorEndpoint(String endpointUri,
org.apache.camel.CamelContext context,
org.apache.camel.Processor processor) |
protected |
ProcessorEndpoint(String endpointUri,
org.apache.camel.Component component) |
|
ProcessorEndpoint(String endpointUri,
org.apache.camel.Component component,
org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.PollingConsumer |
createPollingConsumer() |
protected org.apache.camel.Processor |
createProcessor() |
org.apache.camel.Producer |
createProducer() |
org.apache.camel.Processor |
getProcessor() |
boolean |
isSingleton() |
protected void |
onExchange(org.apache.camel.Exchange exchange) |
void |
setProcessor(org.apache.camel.Processor processor) |
createConsumer
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
configureConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected ProcessorEndpoint()
public ProcessorEndpoint(String endpointUri, org.apache.camel.CamelContext context, org.apache.camel.Processor processor)
public ProcessorEndpoint(String endpointUri, org.apache.camel.Component component, org.apache.camel.Processor processor)
protected ProcessorEndpoint(String endpointUri, org.apache.camel.Component component)
public org.apache.camel.PollingConsumer createPollingConsumer() throws Exception
createPollingConsumer
in interface org.apache.camel.Endpoint
createPollingConsumer
in class DefaultEndpoint
Exception
public void setProcessor(org.apache.camel.Processor processor)
protected org.apache.camel.Processor createProcessor() throws Exception
Exception
protected void onExchange(org.apache.camel.Exchange exchange) throws Exception
Exception
public boolean isSingleton()
Apache Camel