public class IronMQConsumer
extends org.apache.camel.support.ScheduledBatchPollingConsumer
| Constructor and Description |
|---|
IronMQConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
io.iron.ironmq.Queue ironQueue) |
| Modifier and Type | Method and Description |
|---|---|
protected Queue<org.apache.camel.Exchange> |
createExchanges(io.iron.ironmq.Message[] messages) |
IronMQEndpoint |
getEndpoint() |
protected int |
poll() |
int |
processBatch(Queue<Object> exchanges) |
protected void |
processCommit(org.apache.camel.Exchange exchange,
String messageid,
String reservationId)
Strategy to delete the message after being processed.
|
protected void |
processRollback(org.apache.camel.Exchange exchange)
Strategy when processing the exchange failed.
|
deferShutdown, getMaxMessagesPerPoll, getPendingExchangesSize, isBatchAllowed, prepareShutdown, processEmptyMessage, setMaxMessagesPerPollafterPoll, beforePoll, doInit, doShutdown, doStart, doStop, doSuspend, getBackoffCounter, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isPollAllowed, isPolling, isSchedulerStarted, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, run, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startSchedulercreateUoW, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toStringdoResume, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic IronMQConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
io.iron.ironmq.Queue ironQueue)
protected int poll()
throws Exception
poll in class org.apache.camel.support.ScheduledPollConsumerExceptionprotected Queue<org.apache.camel.Exchange> createExchanges(io.iron.ironmq.Message[] messages)
protected void processCommit(org.apache.camel.Exchange exchange,
String messageid,
String reservationId)
exchange - the exchangeprotected void processRollback(org.apache.camel.Exchange exchange)
exchange - the exchangepublic IronMQEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultConsumerApache Camel