public abstract class PollingConsumerSupport
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.PollingConsumer
PollingConsumer
Constructor and Description |
---|
PollingConsumerSupport(org.apache.camel.Endpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Endpoint |
getEndpoint() |
org.apache.camel.spi.ExceptionHandler |
getExceptionHandler() |
org.apache.camel.Processor |
getProcessor() |
protected void |
handleException(Throwable t)
Handles the given exception using the
getExceptionHandler() |
void |
setExceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) |
String |
toString() |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public PollingConsumerSupport(org.apache.camel.Endpoint endpoint)
public org.apache.camel.Endpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
public org.apache.camel.Processor getProcessor()
getProcessor
in interface org.apache.camel.Consumer
public org.apache.camel.spi.ExceptionHandler getExceptionHandler()
public void setExceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler)
protected void handleException(Throwable t)
getExceptionHandler()
t
- the exception to handleApache Camel