public abstract class PollingConsumerSupport extends ServiceSupport implements PollingConsumer
PollingConsumer| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
PollingConsumerSupport(Endpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
getEndpoint()
Gets the endpoint associated with an object.
|
ExceptionHandler |
getExceptionHandler() |
protected void |
handleException(Throwable t)
Handles the given exception using the
getExceptionHandler() |
void |
setExceptionHandler(ExceptionHandler exceptionHandler) |
String |
toString() |
doResume, doShutdown, doStart, doStop, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreceive, receive, receiveNoWaitpublic PollingConsumerSupport(Endpoint endpoint)
public Endpoint getEndpoint()
EndpointAwareProducer
or for consuming from for components like Consumer or RoutegetEndpoint in interface EndpointAwarepublic ExceptionHandler getExceptionHandler()
public void setExceptionHandler(ExceptionHandler exceptionHandler)
protected void handleException(Throwable t)
getExceptionHandler()t - the exception to handleApache Camel