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 of its lifecycle it is advised instead to extend
DefaultEndpoint, DefaultProducer
and DefaultConsumer.shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Modifier | Constructor and Description |
|---|---|
protected |
ProcessorEndpoint() |
|
ProcessorEndpoint(String endpointUri,
CamelContext context,
Processor processor) |
protected |
ProcessorEndpoint(String endpointUri,
Component component) |
|
ProcessorEndpoint(String endpointUri,
Component component,
Processor processor) |
|
ProcessorEndpoint(String endpointUri,
Processor processor)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
PollingConsumer |
createPollingConsumer()
Creates a new Polling
Consumer so that the caller can poll message exchanges from the
consumer using
PollingConsumer.receive(),
PollingConsumer.receiveNoWait() or
PollingConsumer.receive(long) whenever it is ready to do so
rather than using the Event
Based Consumer returned by Endpoint.createConsumer(Processor) |
protected Processor |
createProcessor() |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
Processor |
getProcessor() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
protected void |
onExchange(Exchange exchange) |
void |
setProcessor(Processor processor) |
createConsumerconfigurePollingConsumer, 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, setUseFixedDelayconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendprotected ProcessorEndpoint()
public ProcessorEndpoint(String endpointUri, CamelContext context, Processor processor)
public ProcessorEndpoint(String endpointUri, Component component, Processor processor)
protected ProcessorEndpoint(String endpointUri, Component component)
@Deprecated public ProcessorEndpoint(String endpointUri, Processor processor)
public Producer createProducer() throws Exception
EndpointException - can be thrownpublic PollingConsumer createPollingConsumer() throws Exception
EndpointPollingConsumer.receive(),
PollingConsumer.receiveNoWait() or
PollingConsumer.receive(long) whenever it is ready to do so
rather than using the Event
Based Consumer returned by Endpoint.createConsumer(Processor)createPollingConsumer in interface EndpointcreatePollingConsumer in class DefaultEndpointException - if the pull consumer could not be createdpublic Processor getProcessor() throws Exception
Exceptionpublic void setProcessor(Processor processor)
protected Processor createProcessor() throws Exception
Exceptionprotected void onExchange(Exchange exchange) throws Exception
Exceptionpublic boolean isSingleton()
IsSingletonApache Camel