public final class LazyStartProducer extends DefaultAsyncProducer implements org.apache.camel.DelegateProcessor
Producer
which is created and started lazy, on the first message processed.Constructor and Description |
---|
LazyStartProducer(org.apache.camel.Endpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit() |
protected void |
doResume() |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
doSuspend() |
org.apache.camel.Processor |
getProcessor() |
boolean |
isSingleton()
This implementation will delegate to the endpoint
IsSingleton.isSingleton() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
process, processAsync
createExchange, getEndpoint, toString
build, doBuild, doFail, doLifecycleChange, 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 boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
process
in interface org.apache.camel.AsyncProcessor
public boolean isSingleton()
DefaultProducer
IsSingleton.isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
isSingleton
in class DefaultProducer
protected void doInit() throws Exception
doInit
in class org.apache.camel.support.service.BaseService
Exception
protected void doStart() throws Exception
doStart
in class DefaultProducer
Exception
protected void doStop() throws Exception
doStop
in class DefaultProducer
Exception
protected void doSuspend() throws Exception
doSuspend
in class org.apache.camel.support.service.BaseService
Exception
protected void doResume() throws Exception
doResume
in class org.apache.camel.support.service.BaseService
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.service.BaseService
Exception
public org.apache.camel.Processor getProcessor()
getProcessor
in interface org.apache.camel.DelegateProcessor
Apache Camel