F
- the target file type.S
- the target RemoteFileStreamingInboundChannelAdapterSpec
implementation type.MS
- the target AbstractRemoteFileStreamingMessageSource
implementation type.public abstract class RemoteFileStreamingInboundChannelAdapterSpec<F,S extends RemoteFileStreamingInboundChannelAdapterSpec<F,S,MS>,MS extends AbstractRemoteFileStreamingMessageSource<F>> extends MessageSourceSpec<S,MS> implements ComponentsRegistration
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
RemoteFileStreamingInboundChannelAdapterSpec() |
Modifier and Type | Method and Description |
---|---|
S |
filter(FileListFilter<F> filter)
Configure a
FileListFilter to be applied to the remote files before
copying them. |
S |
filterExpression(String expression)
Configure the
ExpressionFileListFilter . |
S |
filterFunction(java.util.function.Function<F,Boolean> filterFunction)
Configure the
ExpressionFileListFilter . |
Map<Object,String> |
getComponentsToRegister() |
S |
maxFetchSize(int maxFetchSize)
Specify the maximum number of remote files that will be fetched on each fetch
attempt.
|
abstract S |
patternFilter(String pattern)
Configure a simple pattern filter (e.g.
|
abstract S |
regexFilter(String regex)
Configure a regex pattern filter (e.g.
|
S |
remoteDirectory(Expression remoteDirectoryExpression)
Specify an expression that evaluates to the full path to the remote directory.
|
S |
remoteDirectory(java.util.function.Function<Message<?>,String> remoteDirectoryFunction)
Specify a function that is invoked to determine the full path to the remote directory.
|
S |
remoteDirectory(String remoteDirectory)
Specify the full path to the remote directory.
|
S |
remoteFileSeparator(String remoteFileSeparator)
Configure the file name path separator used by the remote system.
|
messageHeaders
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public RemoteFileStreamingInboundChannelAdapterSpec()
public S remoteFileSeparator(String remoteFileSeparator)
remoteFileSeparator
- the remoteFileSeparator.public S remoteDirectory(String remoteDirectory)
remoteDirectory
- the remoteDirectory.AbstractRemoteFileStreamingMessageSource.setRemoteDirectory(String)
public S remoteDirectory(Expression remoteDirectoryExpression)
remoteDirectoryExpression
- The remote directory expression.public S remoteDirectory(java.util.function.Function<Message<?>,String> remoteDirectoryFunction)
remoteDirectoryFunction
- The remote directory function.public S filter(FileListFilter<F> filter)
FileListFilter
to be applied to the remote files before
copying them.filter
- the filter.public S filterExpression(String expression)
ExpressionFileListFilter
.expression
- the SpEL expression for files filtering.AbstractRemoteFileStreamingMessageSource.setFilter(FileListFilter)
,
ExpressionFileListFilter
public S filterFunction(java.util.function.Function<F,Boolean> filterFunction)
ExpressionFileListFilter
.filterFunction
- the Function
for files filtering.AbstractRemoteFileStreamingMessageSource.setFilter(FileListFilter)
,
ExpressionFileListFilter
public S maxFetchSize(int maxFetchSize)
maxFetchSize
- the max fetch size.MessageSourceManagement.setMaxFetchSize(int)
public Map<Object,String> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration
public abstract S patternFilter(String pattern)
pattern
- the pattern.filter(FileListFilter)
public abstract S regexFilter(String regex)
regex
- the regex.filter(FileListFilter)