public class AWS2S3Consumer
extends org.apache.camel.support.ScheduledBatchPollingConsumer
| Constructor and Description |
|---|
AWS2S3Consumer(AWS2S3Endpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected Queue<org.apache.camel.Exchange> |
createExchanges(List<software.amazon.awssdk.services.s3.model.S3Object> s3ObjectSummaries) |
protected Queue<org.apache.camel.Exchange> |
createExchanges(software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> s3Object,
String key) |
protected software.amazon.awssdk.services.s3.S3Client |
getAmazonS3Client() |
protected AWS2S3Configuration |
getConfiguration() |
AWS2S3Endpoint |
getEndpoint() |
protected boolean |
includeS3Object(software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> s3Object)
Decide whether to include the S3Objects in the results
|
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, setMaxMessagesPerPollafterPoll, beforePoll, doInit, doShutdown, doStart, doStop, doSuspend, getBackoffCounter, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isPollAllowed, isPolling, isSchedulerStarted, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, run, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startSchedulercreateUoW, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, setExceptionHandler, setRoute, setRouteIdbuild, doBuild, doFail, doLifecycleChange, doResume, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic AWS2S3Consumer(AWS2S3Endpoint endpoint, org.apache.camel.Processor processor) throws org.apache.camel.NoFactoryAvailableException
org.apache.camel.NoFactoryAvailableExceptionprotected int poll()
throws Exception
poll in class org.apache.camel.support.ScheduledPollConsumerExceptionprotected Queue<org.apache.camel.Exchange> createExchanges(software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> s3Object, String key)
protected Queue<org.apache.camel.Exchange> createExchanges(List<software.amazon.awssdk.services.s3.model.S3Object> s3ObjectSummaries)
protected boolean includeS3Object(software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> s3Object)
s3Object - protected void processCommit(org.apache.camel.Exchange exchange)
exchange - the exchangeprotected void processRollback(org.apache.camel.Exchange exchange)
exchange - the exchangeprotected AWS2S3Configuration getConfiguration()
protected software.amazon.awssdk.services.s3.S3Client getAmazonS3Client()
public AWS2S3Endpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultConsumerpublic String toString()
toString in class org.apache.camel.support.DefaultConsumerApache Camel