org.apache.camel.impl
Class PollingConsumerSupport
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.PollingConsumerSupport
- All Implemented Interfaces:
- Consumer, PollingConsumer, Service, ShutdownableService, StatefulService, SuspendableService
- Direct Known Subclasses:
- EventDrivenPollingConsumer, ProcessorPollingConsumer
public abstract class PollingConsumerSupport
- extends ServiceSupport
- implements PollingConsumer
A useful base class for implementations of PollingConsumer
- Version:
Field Summary |
protected org.slf4j.Logger |
log
|
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doStart, doStop, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
log
protected final transient org.slf4j.Logger log
PollingConsumerSupport
public PollingConsumerSupport(Endpoint endpoint)
toString
public String toString()
- Overrides:
toString
in class Object
getEndpoint
public Endpoint getEndpoint()
- Description copied from interface:
Consumer
- Gets the endpoint this
Consumer
consumes from.
- Specified by:
getEndpoint
in interface Consumer
- Returns:
- the endpoint
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