org.apache.camel.impl
Class DefaultPollingEndpoint

java.lang.Object
  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, HasId
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:
$Revision: 751221 $

Constructor Summary
protected DefaultPollingEndpoint()
           
protected DefaultPollingEndpoint(String endpointUri)
           
protected DefaultPollingEndpoint(String endpointUri, CamelContext context)
           
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
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString
 
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
 

Constructor Detail

DefaultPollingEndpoint

protected DefaultPollingEndpoint()

DefaultPollingEndpoint

protected DefaultPollingEndpoint(String endpointUri)

DefaultPollingEndpoint

protected DefaultPollingEndpoint(String endpointUri,
                                 Component component)

DefaultPollingEndpoint

protected DefaultPollingEndpoint(String endpointUri,
                                 CamelContext context)
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