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 its adviced instead to extend
 DefaultEndpoint, DefaultProducer
 and DefaultConsumer.shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Modifier | Constructor and Description | 
|---|---|
| protected  | ProcessorEndpoint() | 
|   | ProcessorEndpoint(java.lang.String endpointUri,
                 CamelContext context,
                 Processor processor) | 
| protected  | ProcessorEndpoint(java.lang.String endpointUri,
                 Component component) | 
|   | ProcessorEndpoint(java.lang.String endpointUri,
                 Component component,
                 Processor processor) | 
|   | ProcessorEndpoint(java.lang.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()orPollingConsumer.receive(long)whenever it is ready to do so
 rather than using the Event
 Based Consumer returned byEndpoint.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, configureScheduledPollConsumerPropertiesconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendprotected ProcessorEndpoint()
public ProcessorEndpoint(java.lang.String endpointUri,
                 CamelContext context,
                 Processor processor)
public ProcessorEndpoint(java.lang.String endpointUri,
                 Component component,
                 Processor processor)
protected ProcessorEndpoint(java.lang.String endpointUri,
                 Component component)
@Deprecated
public ProcessorEndpoint(java.lang.String endpointUri,
                            Processor processor)
public Producer createProducer() throws java.lang.Exception
Endpointjava.lang.Exception - can be thrownpublic PollingConsumer createPollingConsumer() throws java.lang.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 DefaultEndpointjava.lang.Exception - if the pull consumer could not be createdpublic Processor getProcessor() throws java.lang.Exception
java.lang.Exceptionpublic void setProcessor(Processor processor)
protected Processor createProcessor() throws java.lang.Exception
java.lang.Exceptionprotected void onExchange(Exchange exchange) throws java.lang.Exception
java.lang.Exceptionpublic boolean isSingleton()
IsSingletonCopyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.