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) |
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, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, 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, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected ProcessorEndpoint()
public ProcessorEndpoint(String endpointUri, CamelContext context, Processor processor)
public ProcessorEndpoint(String endpointUri, Component component, Processor processor)
@Deprecated public ProcessorEndpoint(String endpointUri, Processor processor)
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic PollingConsumer createPollingConsumer() throws Exception
Endpoint
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)
createPollingConsumer
in interface Endpoint
createPollingConsumer
in class DefaultEndpoint
Exception
- if the pull consumer could not be createdpublic void setProcessor(Processor processor)
public boolean isSingleton()
IsSingleton
Apache Camel