org.apache.camel.impl
Class PollingConsumerSupport<E extends Exchange>
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.PollingConsumerSupport<E>
- All Implemented Interfaces:
- Consumer<E>, PollingConsumer<E>, Service
- Direct Known Subclasses:
- EventDrivenPollingConsumer, ListPollingConsumer, ProcessorPollingConsumer
public abstract class PollingConsumerSupport<E extends Exchange>
- extends ServiceSupport
- implements PollingConsumer<E>
A useful base class for implementations of PollingConsumer
- Version:
- $Revision: 35332 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doStart, doStop, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
PollingConsumerSupport
public PollingConsumerSupport(Endpoint<E> endpoint)
toString
public String toString()
- Overrides:
toString
in class Object
getEndpoint
public Endpoint<E> 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
Copyright © 2008 IONA Open Source Community. All Rights Reserved.