Class GcsStreamingMessageSource
- java.lang.Object
-
- org.springframework.integration.util.AbstractExpressionEvaluator
-
- org.springframework.integration.endpoint.AbstractMessageSource<T>
-
- org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource<InputStream>
-
- org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<BlobInfo>
-
- com.google.cloud.spring.storage.integration.inbound.GcsStreamingMessageSource
-
- 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 GcsStreamingMessageSource extends org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<BlobInfo>
A streaming message source for Google Cloud Storage.
-
-
Constructor Summary
Constructors Constructor Description GcsStreamingMessageSource(org.springframework.integration.file.remote.RemoteFileTemplate<BlobInfo> template)GcsStreamingMessageSource(org.springframework.integration.file.remote.RemoteFileTemplate<BlobInfo> template, Comparator<BlobInfo> comparator)Creates aGcsStreamingMessageSourcewith acomparatorwhich controls the order that files are processed in.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.springframework.integration.file.remote.AbstractFileInfo<BlobInfo>>asFileInfoList(Collection<BlobInfo> collection)StringgetComponentType()protected booleanisDirectory(BlobInfo blobInfo)voidsetRemoteFileSeparator(String remoteFileSeparator)-
Methods inherited from class org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource
doInit, doReceive, doSetFilter, getRemoteFileTemplate, isRunning, onInit, poll, remotePath, rollbackFromFileToListEnd, setFileInfoJson, setFilter, setRemoteDirectory, setRemoteDirectoryExpression, start, stop
-
Methods inherited from class org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource
doReceive, getMaxFetchSize, setMaxFetchSize
-
Methods inherited from class org.springframework.integration.endpoint.AbstractMessageSource
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
-
Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
GcsStreamingMessageSource
public GcsStreamingMessageSource(org.springframework.integration.file.remote.RemoteFileTemplate<BlobInfo> template)
-
GcsStreamingMessageSource
public GcsStreamingMessageSource(org.springframework.integration.file.remote.RemoteFileTemplate<BlobInfo> template, Comparator<BlobInfo> comparator)
Creates aGcsStreamingMessageSourcewith acomparatorwhich controls the order that files are processed in.- Parameters:
template- template making remote file calls to Google Cloud Storagecomparator- defines the order that files should be processed based onBlobInfo.- Since:
- 1.2
-
-
Method Detail
-
getComponentType
public String getComponentType()
-
setRemoteFileSeparator
public void setRemoteFileSeparator(String remoteFileSeparator)
- Overrides:
setRemoteFileSeparatorin classorg.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<BlobInfo>
-
asFileInfoList
protected List<org.springframework.integration.file.remote.AbstractFileInfo<BlobInfo>> asFileInfoList(Collection<BlobInfo> collection)
- Specified by:
asFileInfoListin classorg.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<BlobInfo>
-
-