org.apache.camel.impl
Class PollingConsumerSupport
java.lang.Object
org.apache.camel.impl.ServiceSupport
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 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doStart, doStop, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
PollingConsumerSupport
public PollingConsumerSupport(Endpoint endpoint)
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