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, toString
build, 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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ProcessorPollingConsumer(org.apache.camel.Endpoint endpoint, org.apache.camel.Processor processor)
public org.apache.camel.Processor getProcessor()
getProcessor
in interface org.apache.camel.Consumer
getProcessor
in class PollingConsumerSupport
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.BaseService
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.BaseService
Exception
public org.apache.camel.Exchange receive()
receive
in interface org.apache.camel.PollingConsumer
public org.apache.camel.Exchange receiveNoWait()
receiveNoWait
in interface org.apache.camel.PollingConsumer
public org.apache.camel.Exchange receive(long timeout)
receive
in interface org.apache.camel.PollingConsumer
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
Apache Camel