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 this
Consumer consumes from. |
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, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
receive, receive, receiveNoWait
protected final org.slf4j.Logger log
public PollingConsumerSupport(Endpoint endpoint)
public Endpoint getEndpoint()
Consumer
Consumer
consumes from.getEndpoint
in interface Consumer
public ExceptionHandler getExceptionHandler()
public void setExceptionHandler(ExceptionHandler exceptionHandler)
protected void handleException(Throwable t)
getExceptionHandler()
t
- the exception to handleApache Camel