public class S3Consumer
extends org.apache.camel.impl.ScheduledBatchPollingConsumer
Constructor and Description |
---|
S3Consumer(S3Endpoint endpoint,
org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
protected Queue<org.apache.camel.Exchange> |
createExchanges(List<com.amazonaws.services.s3.model.S3ObjectSummary> s3ObjectSummaries) |
protected Queue<org.apache.camel.Exchange> |
createExchanges(com.amazonaws.services.s3.model.S3Object s3Object) |
protected com.amazonaws.services.s3.AmazonS3 |
getAmazonS3Client() |
protected S3Configuration |
getConfiguration() |
S3Endpoint |
getEndpoint() |
protected int |
poll() |
int |
processBatch(Queue<Object> exchanges) |
protected void |
processCommit(org.apache.camel.Exchange exchange)
Strategy to delete the message after being processed.
|
protected void |
processRollback(org.apache.camel.Exchange exchange)
Strategy when processing the exchange failed.
|
String |
toString() |
deferShutdown, getMaxMessagesPerPoll, getPendingExchangesSize, isBatchAllowed, prepareShutdown, processEmptyMessage, setMaxMessagesPerPoll
afterPoll, 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, startScheduler
createUoW, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute
doResume, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public S3Consumer(S3Endpoint endpoint, org.apache.camel.Processor processor) throws org.apache.camel.NoFactoryAvailableException
org.apache.camel.NoFactoryAvailableException
protected int poll() throws Exception
poll
in class org.apache.camel.impl.ScheduledPollConsumer
Exception
protected Queue<org.apache.camel.Exchange> createExchanges(com.amazonaws.services.s3.model.S3Object s3Object)
protected Queue<org.apache.camel.Exchange> createExchanges(List<com.amazonaws.services.s3.model.S3ObjectSummary> s3ObjectSummaries)
protected void processCommit(org.apache.camel.Exchange exchange)
exchange
- the exchangeprotected void processRollback(org.apache.camel.Exchange exchange)
exchange
- the exchangeprotected S3Configuration getConfiguration()
protected com.amazonaws.services.s3.AmazonS3 getAmazonS3Client()
public S3Endpoint getEndpoint()
getEndpoint
in interface org.apache.camel.Consumer
getEndpoint
in class org.apache.camel.impl.DefaultConsumer
public String toString()
toString
in class org.apache.camel.impl.DefaultConsumer
Apache Camel