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() |
protected void |
onExchange(org.apache.camel.Exchange exchange) |
void |
setProcessor(org.apache.camel.Processor processor) |
createConsumer
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, doInit, equals, getCamelContext, getComponent, 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
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
Apache Camel