public class ProcessorPollingConsumer extends PollingConsumerSupport implements org.apache.camel.IsSingleton
PollingConsumer which just uses a Processor. This
implementation does not support timeout based receive methods such as receive(long)| Constructor and Description |
|---|
ProcessorPollingConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Processor |
getProcessor() |
boolean |
isSingleton() |
org.apache.camel.Exchange |
receive() |
org.apache.camel.Exchange |
receive(long timeout) |
org.apache.camel.Exchange |
receiveNoWait() |
getEndpoint, getExceptionHandler, handleException, setExceptionHandler, toStringbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic ProcessorPollingConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor)
public org.apache.camel.Processor getProcessor()
getProcessor in interface org.apache.camel.ConsumergetProcessor in class PollingConsumerSupportprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionpublic org.apache.camel.Exchange receive()
receive in interface org.apache.camel.PollingConsumerpublic org.apache.camel.Exchange receiveNoWait()
receiveNoWait in interface org.apache.camel.PollingConsumerpublic org.apache.camel.Exchange receive(long timeout)
receive in interface org.apache.camel.PollingConsumerpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonApache Camel