Class RemoteFileStreamingInboundChannelAdapterSpec<F,S extends RemoteFileStreamingInboundChannelAdapterSpec<F,S,MS>,MS extends AbstractRemoteFileStreamingMessageSource<F>>    
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,MS>
 
org.springframework.integration.dsl.MessageSourceSpec<S,MS>
 
org.springframework.integration.file.dsl.RemoteFileStreamingInboundChannelAdapterSpec<F,S,MS>  
- Type Parameters:
- F- the target file type.
- S- the target- RemoteFileStreamingInboundChannelAdapterSpecimplementation type.
- MS- the target- AbstractRemoteFileStreamingMessageSourceimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<MS>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
- Direct Known Subclasses:
- FtpStreamingInboundChannelAdapterSpec,- SftpStreamingInboundChannelAdapterSpec,- SmbStreamingInboundChannelAdapterSpec
public abstract class RemoteFileStreamingInboundChannelAdapterSpec<F,S extends RemoteFileStreamingInboundChannelAdapterSpec<F,S,MS>,MS extends AbstractRemoteFileStreamingMessageSource<F>>    
extends MessageSourceSpec<S,MS>
implements ComponentsRegistration 
- Since:
- 5.0
- Author:
- Gary Russell
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfilter(FileListFilter<F> filter) Configure aFileListFilterto be applied to the remote files before copying them.filterExpression(String expression) Configure theExpressionFileListFilter.filterFunction(Function<F, Boolean> filterFunction) Configure theExpressionFileListFilter.maxFetchSize(int maxFetchSize) Specify the maximum number of remote files that will be fetched on each fetch attempt.abstract SpatternFilter(String pattern) Configure a simple pattern filter (e.g.abstract SregexFilter(String regex) Configure a regex pattern filter (e.g.remoteDirectory(String remoteDirectory) Specify the full path to the remote directory.remoteDirectory(Function<Message<?>, String> remoteDirectoryFunction) Specify a function that is invoked to determine the full path to the remote directory.remoteDirectory(Expression remoteDirectoryExpression) Specify an expression that evaluates to the full path to the remote directory.remoteFileSeparator(String remoteFileSeparator) Configure the file name path separator used by the remote system.Methods inherited from class org.springframework.integration.dsl.MessageSourceSpecmessageHeadersMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
RemoteFileStreamingInboundChannelAdapterSpecpublic RemoteFileStreamingInboundChannelAdapterSpec()
 
- 
- 
Method Details- 
remoteFileSeparator
- 
remoteDirectory
- 
remoteDirectorySpecify an expression that evaluates to the full path to the remote directory.- Parameters:
- remoteDirectoryExpression- The remote directory expression.
- Returns:
- the spec.
 
- 
remoteDirectory
- 
filterConfigure aFileListFilterto be applied to the remote files before copying them.- Parameters:
- filter- the filter.
- Returns:
- the spec.
 
- 
filterExpressionConfigure theExpressionFileListFilter.- Parameters:
- expression- the SpEL expression for files filtering.
- Returns:
- the spec.
- See Also:
 
- 
filterFunction
- 
maxFetchSizeSpecify the maximum number of remote files that will be fetched on each fetch attempt. A small number is recommended when multiple application instances are running, to avoid one instance from "grabbing" all the files.- Parameters:
- maxFetchSize- the max fetch size.
- Returns:
- the spec.
- See Also:
 
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
 
- 
patternFilter
- 
regexFilter
 
-