org.apache.camel.impl
Class PollingConsumerSupport

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.PollingConsumerSupport
All Implemented Interfaces:
Consumer, PollingConsumer, Service
Direct Known Subclasses:
EventDrivenPollingConsumer, ProcessorPollingConsumer

public abstract class PollingConsumerSupport
extends ServiceSupport
implements PollingConsumer

A useful base class for implementations of PollingConsumer

Version:
$Revision: 757326 $

Constructor Summary
PollingConsumerSupport(Endpoint endpoint)
           
 
Method Summary
 Endpoint getEndpoint()
           
 ExceptionHandler getExceptionHandler()
           
protected  void handleException(Throwable t)
          Handles the given exception using the getExceptionHandler()
 void setExceptionHandler(ExceptionHandler exceptionHandler)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doStart, doStop, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.PollingConsumer
receive, receive, receiveNoWait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

PollingConsumerSupport

public PollingConsumerSupport(Endpoint endpoint)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getEndpoint

public Endpoint getEndpoint()

getExceptionHandler

public ExceptionHandler getExceptionHandler()

setExceptionHandler

public void setExceptionHandler(ExceptionHandler exceptionHandler)

handleException

protected void handleException(Throwable t)
Handles the given exception using the getExceptionHandler()

Parameters:
t - the exception to handle


Apache CAMEL