public class GoogleMailStreamConsumer
extends org.apache.camel.impl.ScheduledBatchPollingConsumer
| Constructor and Description |
|---|
GoogleMailStreamConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
String unreadLabelId,
List labelsIds) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.api.services.gmail.Gmail |
getClient() |
protected GoogleMailStreamConfiguration |
getConfiguration() |
GoogleMailStreamEndpoint |
getEndpoint() |
protected int |
poll() |
int |
processBatch(Queue<Object> exchanges) |
protected void |
processCommit(org.apache.camel.Exchange exchange,
String unreadLabelId)
Strategy to delete the message after being processed.
|
protected void |
processRollback(org.apache.camel.Exchange exchange,
String unreadLabelId)
Strategy when processing the exchange failed.
|
deferShutdown, getMaxMessagesPerPoll, getPendingExchangesSize, isBatchAllowed, prepareShutdown, processEmptyMessage, setMaxMessagesPerPollafterPoll, beforePoll, 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, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendprotected GoogleMailStreamConfiguration getConfiguration()
protected com.google.api.services.gmail.Gmail getClient()
public GoogleMailStreamEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.impl.DefaultConsumerprotected int poll()
throws Exception
poll in class org.apache.camel.impl.ScheduledPollConsumerExceptionprotected void processCommit(org.apache.camel.Exchange exchange,
String unreadLabelId)
exchange - the exchangeIOExceptionprotected void processRollback(org.apache.camel.Exchange exchange,
String unreadLabelId)
exchange - the exchangeIOExceptionApache Camel