org.apache.camel.impl
Class DefaultPollingEndpoint<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.ScheduledPollEndpoint<E>
          extended by org.apache.camel.impl.DefaultPollingEndpoint<E>
All Implemented Interfaces:
CamelContextAware, Endpoint<E>
Direct Known Subclasses:
ProcessorEndpoint

public abstract class DefaultPollingEndpoint<E extends Exchange>
extends ScheduledPollEndpoint<E>

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

Version:
$Revision: 656397 $

Constructor Summary
protected DefaultPollingEndpoint()
           
protected DefaultPollingEndpoint(String endpointUri)
           
protected DefaultPollingEndpoint(String endpointUri, CamelContext context)
           
protected DefaultPollingEndpoint(String endpointUri, Component component)
           
 
Method Summary
 Consumer<E> 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
convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, 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, 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<E> 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

Returns:
a newly created consumer
Throws:
Exception


Apache CAMEL