org.apache.camel.impl
Class DefaultPollingEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.impl.ScheduledPollEndpoint
              extended by org.apache.camel.impl.DefaultPollingEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId, StatefulService, SuspendableService
Direct Known Subclasses:
ProcessorEndpoint

public abstract class DefaultPollingEndpoint
extends ScheduledPollEndpoint

A base class for an endpoint which the default consumer mode is to use a PollingConsumer

Version:

Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
protected DefaultPollingEndpoint()
           
protected DefaultPollingEndpoint(String endpointUri)
          Deprecated. 
protected DefaultPollingEndpoint(String endpointUri, CamelContext context)
          Deprecated. 
protected DefaultPollingEndpoint(String endpointUri, Component component)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, 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
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Endpoint
createProducer
 
Methods inherited from interface org.apache.camel.IsSingleton
isSingleton
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

DefaultPollingEndpoint

protected DefaultPollingEndpoint()

DefaultPollingEndpoint

protected DefaultPollingEndpoint(String endpointUri,
                                 Component component)

DefaultPollingEndpoint

@Deprecated
protected DefaultPollingEndpoint(String endpointUri)
Deprecated. 


DefaultPollingEndpoint

@Deprecated
protected DefaultPollingEndpoint(String endpointUri,
                                            CamelContext context)
Deprecated. 

Method Detail

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
processor - the given processor
Returns:
a newly created consumer
Throws:
Exception - can be thrown


Apache Camel