Class S3StreamingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<InputStream>
org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource<InputStream>
org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<software.amazon.awssdk.services.s3.model.S3Object>
org.springframework.integration.aws.inbound.S3StreamingMessageSource
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.Lifecycle,org.springframework.integration.core.MessageSource<InputStream>,org.springframework.integration.IntegrationPattern,org.springframework.integration.support.context.NamedComponent,org.springframework.integration.support.management.IntegrationInboundManagement,org.springframework.integration.support.management.IntegrationManagement,org.springframework.integration.support.management.ManageableLifecycle,org.springframework.integration.support.management.MessageSourceManagement
public class S3StreamingMessageSource
extends org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<software.amazon.awssdk.services.s3.model.S3Object>
A
AbstractRemoteFileStreamingMessageSource implementation for the Amazon S3.- Since:
- 1.1
- Author:
- Christian Tzolov, Artem Bilan
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement
org.springframework.integration.support.management.IntegrationManagement.ManagementOverrides -
Field Summary
Fields inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
EXPRESSION_PARSER, loggerFields inherited from interface org.springframework.integration.support.management.IntegrationManagement
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionS3StreamingMessageSource(org.springframework.integration.file.remote.RemoteFileTemplate<software.amazon.awssdk.services.s3.model.S3Object> template) S3StreamingMessageSource(org.springframework.integration.file.remote.RemoteFileTemplate<software.amazon.awssdk.services.s3.model.S3Object> template, Comparator<software.amazon.awssdk.services.s3.model.S3Object> comparator) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.springframework.integration.file.remote.AbstractFileInfo<software.amazon.awssdk.services.s3.model.S3Object>> asFileInfoList(Collection<software.amazon.awssdk.services.s3.model.S3Object> collection) protected booleanisDirectory(software.amazon.awssdk.services.s3.model.S3Object file) protected org.springframework.integration.file.remote.AbstractFileInfo<software.amazon.awssdk.services.s3.model.S3Object> poll()Methods inherited from class org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource
doInit, doReceive, doSetFilter, getRemoteFileTemplate, isRunning, onInit, remotePath, rollbackFromFileToListEnd, setFileInfoJson, setFilter, setRemoteDirectory, setRemoteDirectoryExpression, setRemoteFileSeparator, setStrictOrder, start, stopMethods inherited from class org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource
doReceive, getMaxFetchSize, setMaxFetchSizeMethods inherited from class org.springframework.integration.endpoint.AbstractMessageSource
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.support.management.IntegrationManagement
getThisAs, isObserved, registerObservationRegistryMethods inherited from interface org.springframework.integration.core.MessageSource
getIntegrationPatternType
-
Constructor Details
-
S3StreamingMessageSource
public S3StreamingMessageSource(org.springframework.integration.file.remote.RemoteFileTemplate<software.amazon.awssdk.services.s3.model.S3Object> template) -
S3StreamingMessageSource
public S3StreamingMessageSource(org.springframework.integration.file.remote.RemoteFileTemplate<software.amazon.awssdk.services.s3.model.S3Object> template, Comparator<software.amazon.awssdk.services.s3.model.S3Object> comparator)
-
-
Method Details
-
asFileInfoList
protected List<org.springframework.integration.file.remote.AbstractFileInfo<software.amazon.awssdk.services.s3.model.S3Object>> asFileInfoList(Collection<software.amazon.awssdk.services.s3.model.S3Object> collection) - Specified by:
asFileInfoListin classorg.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<software.amazon.awssdk.services.s3.model.S3Object>
-
getComponentType
-
poll
protected org.springframework.integration.file.remote.AbstractFileInfo<software.amazon.awssdk.services.s3.model.S3Object> poll()- Overrides:
pollin classorg.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<software.amazon.awssdk.services.s3.model.S3Object>
-
isDirectory
protected boolean isDirectory(software.amazon.awssdk.services.s3.model.S3Object file) - Specified by:
isDirectoryin classorg.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<software.amazon.awssdk.services.s3.model.S3Object>
-