public class SedaProducer
extends org.apache.camel.support.DefaultAsyncProducer
| Constructor and Description |
|---|
SedaProducer(SedaEndpoint endpoint,
org.apache.camel.WaitForTaskToComplete waitForTaskToComplete,
long timeout,
boolean blockWhenFull,
long offerTimeout) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToQueue(org.apache.camel.Exchange exchange,
boolean copy)
Strategy method for adding the exchange to the queue.
|
protected void |
doStart() |
protected void |
doStop() |
protected org.apache.camel.Exchange |
prepareCopy(org.apache.camel.Exchange exchange,
boolean handover) |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
createExchange, getEndpoint, isSingleton, toStringbuild, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic SedaProducer(SedaEndpoint endpoint, org.apache.camel.WaitForTaskToComplete waitForTaskToComplete, long timeout, boolean blockWhenFull, long offerTimeout)
public boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
protected org.apache.camel.Exchange prepareCopy(org.apache.camel.Exchange exchange,
boolean handover)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultProducerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultProducerExceptionprotected void addToQueue(org.apache.camel.Exchange exchange,
boolean copy)
throws SedaConsumerNotAvailableException
Will perform a blocking "put" if blockWhenFull is true, otherwise it will simply add which will throw exception if the queue is full
exchange - the exchange to add to the queuecopy - whether to create a copy of the exchange to use for adding to the queueSedaConsumerNotAvailableExceptionApache Camel